$DSCALL OPT=COPY

Copies sequential data sets or PDS members.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=COPY
             FROMDSN=dataset_name
             TODSN=dataset_name
           [ DISPLAY= { YES | NO } ]
           { MEMBER=member_name |
             MEMBER={ * | member_name [, member_name,... ] } }
           [ REPLACE= { YES | NO } ]
           [ STAT= { SHR | OLD } ]
           [ SYSPRINT= { KEEP | DELETE | DSN } ]

This call is used to copy a sequential data set to another sequential data set, a sequential data set to a PDS member, a PDS member to a sequential data set, or PDS members to another PDS.

Operands:

Return Codes:

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

Return Variables:

Example: OPT=COPY

EXEC $DSCALL OPT=COPY FROMDSN=SYS1.DEV.SAMPLE +
   TODSN=SYS1.WORK.TEST01


Copyright © 2009 CA. All rights reserved.