$DSCALL OPT=OPEN

Opens a sequential data set or member of a PDS for input or output.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=OPEN
             DD=DD_name
           [ ID=path_name ]
           [ MEMBER=member_name ]
           [ MODE= { INPUT | OUTPUT } ]

This call is used to open a data set or a member of a PDS in preparation for reading (specify MODE=INPUT) or writing (specify MODE=OUTPUT).

Operands:

Return Codes:

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

Return Variables:

Example: OPT=OPEN

EXEC $DSCALL OPT=OPEN DD=SYSDD MODE=OUTPUT +
   MEMBER=TEST01

Note: If the original allocation was to a PDS or a member of a PDS, the member is opened. If the allocation was for a sequential data set, the data set is opened.


Copyright © 2009 CA. All rights reserved.