$DSCALL OPT=COPYSEQ

Copies a sequential data set from a source data set to a target data set.

EXEC $DSCALL OPT=COPYSEQ 
             FROMDSN=source_dsn TODSN=target_dsn 
             REPLACE={ YES | NO }
             STAT={ SHR | MOD | OLD }
             SYSPRINT={ KEEP | DELETE | DSN }
             DISPLAY={ YES | NO }

This call is used to copy a sequential data set from a source data set to a target data set.

Operands:

Return Codes:

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

Examples: OPT=COPYSEQ

EXEC $DSCALL OPT=COPYSEQ FROMDSN=dsn1_name
    TODSN= dsn2_name STAT=SHR
    SYSPRINT=DSN DISPLAY=YES

This example copies dsn1_name to dsn2_name and displays the sysprint output to the screen.

EXEC $DSCALL OPT=COPYPDS FROMDSN=dsn1_name
    TODSN=dsn2_name MEMBER=member_name STAT=SHR
    SYSPRINT=DELETE

This example copies dsn1_name to dsn2_name and deletes the sysprint output.


Copyright © 2009 CA. All rights reserved.