The JCLLIB processing subroutine checks for anything that is related only to JCLLIB statement processing. You can still reference the JOB, EXEC, DD, and other statement variables as needed. Only one JCLLIB statement is active at any one time.
/******************************************************************************/
/* JCLLIB Processing Logic */
/******************************************************************************/
/* The value of all JCLLIB variables are only maintained within a given */
/* JCLLIB statement. When another statement is encountered, the values change.*/
/******************************************************************************/
A JCLL_PROCESSING:
B If JCL.ORDER1.0 > 0 then
Do
Say 'JCL.JCLLNAME is '||JCL.JCLLNAME
Say 'JCLLIB ORDER 1 DSN = '||JCL.ORDER1
Say 'NODES='||JCL.ORDER1.0
Do I = 1 TO JCL.ORDER1.0
SAY 'NODE'||I||'='JCL.ORDER1.I
End
End
C Return
Defines the name of this subroutine to the DO WHILE loop.
IF statement selects JCLLIB statements that have at least one ORDER parameter and then lists out that data set and each individual data set node.
Causes control to return to the main DO WHILE loop.
|
Copyright © 2014 CA.
All rights reserved.
|
|