JCL DD DEST

JCL – DD DCB JCL – DD DISP

Advertisements


DEST parameter used to specify the destination for the sysout dataset.

The DEST parameter can send the sysout dataset to the various destinations like remote or local terminal, node, remote workstation, local device, group of devices and node and userid.

Code DEST parameter with SYSOUT always, otherwise it ignores it.


Syntax:

DEST=destination

The destination subparameter for JES3 is one of the following:


  • ANYLOCAL
  • device-name
  • device-number
  • group-name
  • nodename
  • (nodename,userid)
  • (nodename,devicename)

ANYLOCAL Specifies any local device that is attached to the global processor.
device-name Identifies a local device by a symbolic name.

The name defined by the installation.

device-name is 1 through 8 characters.

Device-name accepts alphanumeric or national characters.
device-number Identifies a specific device by a 3-digit or 4-digit hexadecimal number.

4-digit number proceeded with a slash (/).

3-digit number can be specified with or without a slash.
group-name Identifies a group of local devices, an individual remote station, or a group of remote stations by a symbolic name.

The name defined by the installation.

Group-name is 1 through 8 characters.

Group name allows alphanumeric or national ($, #, @) characters.
nodename Identifies a node by a symbolic name.

The name defined by the installation.

nodename is 1 through 8 characters.

The name allows alphanumeric or national characters.
(nodename,userid) Identifies a nodename and userid at that nodename.

The nodename is a symbolic name defined by the installation.

The nodename is 1 through 8 characters.

The nodename allows alphanumeric or national characters.

The userid must be defined at the nodename.

userid is 1 through 7 characters for TSO/E.

userid is 1 through 8 characters for VM.

Userid allows alphanumeric or national ($, #, @) characters.
(nodename,devicename) Identifies a node by a symbolic name.

devicename identifies a device by a symbolic name.

The names are defined by the installation.

nodename and devicename are each 1 through 8 characters.

nodename and devicename allows alphanumeric or national characters.

devicename is 1 through 8 characters.

Devicename allows alphanumeric or national characters.

Defaults and overrides:


If the DEST parameter not specified, JES directs the sysout dataset to the default destination from which the job submitted.

If the Destination specified with DEST parameter is invalid, job will fail.

The DEST parameter on the sysout statement overrides the JCL OUTPUT DEST parameter.


Example 1:

//STEP01 EXEC PROG=SAMPLE
//DD1    DD    DSNAME=MTH.DATA.FILE,DISP=(NEW,KEEP),
//             DCB=(RECFM=FB,LRECL=425,BLKSIZE=18000),
//             SPACE=(50,10)
//OUTPUT DD    SYSOUT=*

System sends the sysout data set defined by DD statement OUTPUT to the work station that submitted the job.


Example 2:

//STEP01 EXEC PROG=SAMPLE
//DD1    DD    DSNAME=MTH.DATA.FILE,DISP=(NEW,KEEP),
//             DCB=(RECFM=FB,LRECL=425,BLKSIZE=18000),
//             SPACE=(50,10)
//OUTPUT DD    SYSOUT=*,DEST=NODE12

System sends the sysout data set defined by DD statement OUTPUT to the node NODE12.


Example 3:

//STEP01 EXEC PROG=SAMPLE
//DD1    DD    DSNAME=MTH.DATA.FILE,DISP=(NEW,KEEP),
//             DCB=(RECFM=FB,LRECL=425,BLKSIZE=18000),
//             SPACE=(50,10)
//OUTPUT DD    SYSOUT=*,DEST=(NODE12,’MTHUSER’)

System sends the sysout data set defined by DD statement OUTPUT to VM userid MTHUSER at the node NODE12.


JCL – DD DCB JCL – DD DISP

Advertisements