Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JCL MVA

Description 

This command copies a value from the source to the destination buffer and stores it as a multivalue. It takes the general form: 

MVA destination source

 where: 

  • destination is a direct or indirect reference to a buffer or select register which is to receive the data.
  • source is the data to be copied. The source can be a direct or indirect reference to a buffer or select register, or a literal string.

 

Note:

New values will be copies to the destination in ascending ASCII  sequence. If a new value already exists in the destination buffer, it will not be copied. If the source data is multivalued, it will be copied to the destination without modification. This might create duplicate values and invalidate the ascending sequence.

If the destination is the input buffer, the buffer pointer will be left at the beginning of the destination parameter.

 

EXAMPLE 1

PIB contains: ABC^DEF^GHI

Command
File Buffer 1 Before
File Buffer 1 After

MVA &1.1 %3

000 Key
001 FFF]HHH
002 YYY

000 Key
001 FFF]GHI]HHH
YYY

 

EXAMPLE 2

File buffer 2 contains:

000 Key
001 GG]YY
002 AAA
Command  File Buffer 1 Before  File Buffer 1 After 

MVA &1.1 &2.1

000 Key
001 FFF]HHH
002 YYY

000 Key
001 FFF]GG]YY]HHH
YYY


Back to JCL Commands .



Was this article helpful?