SCAN directive

Purpose

If the VARSUB keyword of the OPCOPTS statement is set to SCAN, this directive, when found in the JCL of a computer workstation operation, informs HCL Workload Automation for Z that variable substitution should start from this line. This applies also for processing the directives, meaning that the processing of the directives starts from the line where SCAN is specified.

Syntax


1  //*%OPC SCAN

Usage Notes

The SCAN directive is honored only if the VARSUB parameter of the OPCOPTS statement is set to SCAN.

Assuming that VARSUB(SCAN) is specified, in the following example, MODULE will not be substituted because it is before the SCAN directive. The variable LIBRARY, occurring after the SCAN directive, is substituted.

Example

//OPSTATUS JOB (ACCOUNT),'Set completed',CLASS=A
//STEP1    EXEC PGM=&MODULE.
//*%OPC SCAN
//STEPLIB  DD DSN=OPC.LOAD.&LIBRARY.,DISP=SHR
//EQQMLIB  DD DSN=OPC.MESSAGE.LIBRARY,DISP=SHR
//EQQMLOG  DD SYSOUT=A
//SYSIN    DD *
/*