
JMCL Example JMCL Parameters
9-14 User Reference
JMCL Example
The following example shows JMCL parameters working together.
// JOB EXAMPLE TYPRUN=RESTART,RESET,TIME=240
* JMCL HOLD
// OPTION LOG &1=PAYROLL
* JMCL &2=PAYROLL
* JMCL GOTO=STEP2
// ASSGN SYS001,DISK,VOL=VOLUME,SHR
// DLBL SORTWK1,'==.SORTWK1(P)'
// EXTENT SYS001
// DLBL SORTIN,'&1.INPUT'
// DLBL SORTOUT,'&2.OUTPUT'
// EXEC SORT DATA
sort statements
/*
* JMCL NAME=STEP2
* JMCL IF=(DATE EQ **-**-01,TIME LT 19-00-00),GOTO=STEP3
// DLBL INPUT,'&1.INPUT'
statements
* JMCL NAME=STEP3
statements
/&
This example is a restart job.
The RESET parameter is included to reset any JMCL parameters established in a previous
job. The TIME parameter limits the execution of this job to 4 hours.
Since it is a restart job, the GOTO bypasses the first step, which completed successfully in a
previous execution. (GOTO is placed after the symbolic replacement definitions, so that they
remain in effect.) The DATA parameter allows BIM-EPIC to bypass the sort control
statements (SYSIPT data). The TYPRUN=RESTART parameter is specified so that the sort
work area in the bypassed step is deleted. It was retained in the previous execution because of
the JMCL HOLD parameter, specified in the second statement.
The * JMCL NAME=STEP2 statement defines the point at which processing should resume
after the GOTO branch. The next statement tests the date and time. If it is the first of the
month and earlier than 7:00 p.m., BIM-EPIC branchs to the statement * JMCL
NAME=STEP3. If either condition is false, processing continues with the // DLBL INPUT
statement.
Both the &1 and &2 symbols are replaced with PAYROLL.
Description
Comentarios a estos manuales