Previous Topic

Next Topic

Book Contents

Book Index

Use the Sample JCL to Create JCL for Each User Daily Job

Create the JCL for each User Daily job by selecting one of the alternative methods of identifying tables (below) and customizing the JCL accordingly.

Table 99 Methods for Identifying Tables

Method

Description

Method 1

DSN=sched_library(table)

This method requires that the user specify the name of a table and library directly in the JCL.

//DAILY EXEC CTMDAILY

//DACHK DD  DISP=SHR,DSN=parm_lib(date_control_record)

//DAJOB DD  DISP=SHR,DSN=sched_library(table1)

//      DD  DISP=SHR,DSN=sched_library(table2)

//      DD  DISP=SHR,DSN=sched_library(table3)

Method 2

DSN=parm_library(member)

//DAILY EXEC CTMDAILY

//DACHK DD DISP=SHR,DSN=parm_lib(date_control_record)

//DAJOB DD DISP=SHR,DSN=parm_library(member)

This method requires that the user specify a parm_library and member containing ORDER requests that identify scheduling libraries, tables, and jobs to schedule—and/or in-stream ORDER requests—following //DAJOB DD *

Method 2 provides the following advantages over Method 1

Changes required can be made to the member in the parm_library without changing the JCL of the User Daily job.

Individual jobs can be specified.

An entire library can be ordered with one order statement in the format:

ORDER DSN=AAA.BBB.CCC,MEMBER=*

When using Method 2, specify at least one ORDER statement and, optionally, SELECT or IGNORE statements.

The Date Control record is referenced by DD statement DACHK.

For the syntax, parameter descriptions and functionality of the ORDER, SELECT and IGNORE statements, see the CTMJOB utility in the INCONTROL for z/OS Utilities Guide.

Parent Topic

Examples