$DSCALL OPT=ALLOC SYSOUT=class

Allocates a SYSOUT data set.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=ALLOC
             SYSOUT=class
           [ BLKSIZE=blocksize ]
           [ COPIES=copies ]
           [ DD=DD_name ]
           [ DESTID=destination_ID ]
           [ FCB=fcb ]
           [ FOLD= { NO | YES } ]
           [ FORMAT=dataset_format ]
           [ FREE= { UNAL | CLOSE } ]
           [ HOLD= { NO | YES } ]
           [ LRECL=logical_record_length ]
           [ PGM=program_name ]
           [ UCS=ucs ]
           [ USERID=user_ID ]

This call is used to allocate a SYSOUT data set to your product region. The data set remains allocated to your product region until it is explicitly deallocated, until a CLOSE is requested if allocated with FREE=CLOSE, or until your product region terminates.

Operands:

Return Codes:

$DSRC

$DSFDBK

Meaning

0

0

Data set was allocated; allocation details available in &$DS* variables as described below.

0

non-zero

Data set was allocated; however, allocation details are incomplete.

4

non-zero

Data set was not allocated.

8

non-zero

A Dataset Services Interface error has occurred and the function is incomplete. This is typically an application program specification error. The error is indicated in &SYSMSG with message number DSnnnn.

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

Return Variables:

Examples: SYSOUT=class

EXEC $DSCALL OPT=ALLOC +
   SYSOUT=X BLKSIZE=121 LRECL=121 FORMAT=FBA

Note: If PGM=INTRDR is specified, the SYSOUT file is used to submit JCL for execution; however, it is recommended that the $DSCALL OPT=SUBMIT function is used.

More information:

$DSCALL OPT=ALLOC


Copyright © 2009 CA. All rights reserved.