$DSCALL OPT=CREATE

Creates a new data set.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=CREATE
             DSN=dataset_name
             FORMAT=format
             ORG=dataset_organization
             RLSE={ NO | YES }
             SPACE= { TRK | CYL } , pri, sec [ ,dir ]
           [ BLKSIZE=blocksize ]
           [ DATACLS=class ]
           [ FREE= { UNAL | CLOSE } ]
           [ LRECL= logical_record_length ]
           [ MGMTCLS=class ]
           [ MOUNT= { NO | YES } ]
           [ STORCLS=class ]
           [ VOL=volser [ UNIT=unit ] ]

This call is used to create a new data set on DASD. This call is similar to the $DSCALL OPT=ALLOC call except the data set must not be a temporary or SYSOUT data set. The data set is cataloged and does not remain allocated to your product region on completion of the operation.

Operands:

Return Codes:

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

Return Variables:

Example: OPT=CREATE

EXEC $DSCALL OPT=CREATE DSN=DEV.SAMPLE.PDS.WORK02 +
   SPACE='TRK,10,5,1' ORG=PO FORMAT=FB +
   LRECL=80, BLKSIZE=4000, STAT=NEW


Copyright © 2009 CA. All rights reserved.