PSF for z/OS: User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Assigning OUTPUT statements to a DD statement

PSF for z/OS: User's Guide
S550-0435-04

Assigning OUTPUT statements to a DD statement

To assign one or more OUTPUT statements to the DD statement, use the OUTPUT parameter in your DD statement. The OUTPUT parameter causes the parameters on the OUTPUT statement to apply to that DD statement. The names of the OUTPUT statements are referred to by the OUTPUT parameter in the DD statement.

All OUTPUT statements assigned to a DD statement must precede the DD statement. The system processes a separate output data set for each OUTPUT statement listed in the OUTPUT parameter of a DD statement. This example shows the OUTPUT statements that are assigned to the DD1 DD statement:

Example:
//OUTPUT1 OUTPUT DEST=name
//OUTPUT2 OUTPUT DEST=name,FORMDEF=fdefname,PAGEDEF=pdefname
//DD1 DD SYSOUT=A,OUTPUT=(*.OUTPUT1,*.OUTPUT2)
In this example, the system produces separate output data sets for each of the OUTPUT statements: a data set for OUTPUT1, and a data set for OUTPUT2.

Some parameters can be specified only in a DD statement, and some can be specified only in an OUTPUT statement. Others can be specified in either a DD statement or an OUTPUT statement. If you specify the same parameter in both statements, PSF uses the DD statement parameter rather than the OUTPUT statement parameter. For example, if you use this JCL, the printer destination selected is PRT0, not PRT1.

Example:
//OUTPUT1 OUTPUT DEST=PRT1
//DD1 DD SYSOUT=A,DEST=PRT0,OUTPUT=(*.OUTPUT1)

In this and other examples in this information, DD statements use specifically assigned OUTPUT statements. However, an OUTPUT statement can be assigned to a DD statement by default by specifying DEFAULT=Y on the OUTPUT statement. For more information about this assignment or about the DD and OUTPUT statements, see the JCL reference publication for your operating system.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014