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


Example: Using JCL and OCOPY

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

Alternatively, TURBO could specify the ddnames in the //IN DD and //OUT DD statements in the JCL for a batch job. A DD statement allocates a data set or file and sets up a ddname. For example:
//TEST JOB MSGLEVEL=(1,1)
//COPYSTEP EXEC PGM=IKJEFT01
//IN       DD DSN=TURBO.TEMP1,DISP=SHR
//OUT      DD DSN=TURBO.TEMP1OC,DISP=OLD
//SYSTSPRT DD SYSOUT=*
//SYSTSIN  DD *
OCOPY INDD(IN) OUTDD(OUT) TEXT CONVERT(YES) TO1047
/*
In this example,
  • IKJEFT01 is the name of the Terminal Monitor Program (TMP), which needs to be started to process the TSO/E OCOPY command.
  • TO1047 is required, because you are copying from one data set to another data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014