HCL Workload Automation, Version 9.4

SCAN directive

Purpose

If the VARSUB keyword of the TWSOPTS statement is set to SCAN, this directive, when found in the JCL , informs the agent for z/OS 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

Read syntax diagramSkip visual syntax diagram
>>-//*%OPC SCAN------------------------------------------------><

Usage Notes

The SCAN directive is honored only if the VARSUB parameter of the TWSOPTS 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=TWS.LOAD.&LIBRARY.,DISP=SHR
//EELMLIB  DD DSN=TWS.MESSAGE.LIBRARY,DISP=SHR
//EELMLOG  DD SYSOUT=A
//SYSIN    DD *
/*