z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Specifying a ddname in the JCL

z/OS UNIX System Services User's Guide
SA23-2279-00

In the JCL for a job, you use a DD statement to associate a ddname with the name of a specific MVS™ data set or z/OS UNIX file.

To specify a file, use the PATH keyword.

Example: To associate the path name for the file /u/fred/list/wilma with the ddname FRED, specify:
//FRED     DD  PATH='/u/fred/list/wilma'
At another time, you might specify a different file to be associated with the ddname FRED.

To specify a data set, use the DSN keyword.

Example: To associate the data set FRED.LIST.WILMA with the ddname FRED, specify:
//FRED     DD  DSN=FRED.LIST.WILMA,DISP=SHR
At another time, you might specify a different data set to be associated with the ddname FRED.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014