$DSCALL OPT=CONCAT

Concatenates a set of data sets under a single ddname.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=CONCAT
             DDLIST=' ddname1, ddname2, ... ddnamen '

This call is used to concatenate two or more ddnames which are allocated to your product region under a single ddname. Each ddname in the list to be concatenated may be a single data set allocation or may itself be a concatenated DD.

Operands:

Return Codes:

Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.

Return Variables:

Example: OPT=CONCAT

EXEC $DSCALL OPT=CONCAT DDLIST='DD1,DD2'

This example concatenates all data sets allocated under the ddname 'DD2' to the 'DD1' DD data set list. The resulting DD is called 'DD1' and the ddname 'DD2' is no longer recognized by the operating system.

Note: Data sets that are concatenated in the JCL for your product region are deemed to be permanently concatenated, which means the DD cannot be deconcatenated. Data sets that are dynamically concatenated by your product region is deconcatenated.


Copyright © 2009 CA. All rights reserved.