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 MVD

Description 

This command deletes a value from a multivalued parameter in the target buffer. It takes the general form: 

MVD target source

where: 

  • target is a direct or indirect reference to a buffer or select register which contains the data to be deleted.
  • source is the data you want to delete. Can be a literal string, or a direct or indirect reference to a buffer or select register. 


Note: 

Values in the target must be in ascending ASCII  sequence, otherwise the result of the command will be unpredictable. If the source does not exist or if the multivalue cannot be matched, the command wills no effect, except perhaps to move the buffer pointer.

If the source element exists more than once in the target parameter, only the first occurrence will be deleted.

If the target is the primary input buffer, the buffer pointer will be left at the beginning of the specified target parameter.

 

EXAMPLE
Command  File Buffer 1 Before  File Buffer 1 After 

MVD &1.1 DEF

000 Key
001 AAA]DEF]GHI
002 YYY

000 Key
001 ABC]GHI
002 YYY

 

Back to JCL Commands

Was this article helpful?