Strings you cannot use variables to represent

HCL Workload Automation for Z variables can represent the values of most keywords, but you cannot use variables to represent certain keywords in both standard z/OS® JCL and in HCL Workload Automation for Z directives.
  • In the case of z/OS® JCL, the restricted keywords are:
    • JOB in the JOB statement
    • EXEC in the EXEC statement
    • INCLUDE in the INCLUDE statement
    • DD in the DD statement
    • PROC in the PROC statement
    • PEND in the PEND statement

    If these fields are replaced by variables, the results are unpredictable.

  • In the case of the HCL Workload Automation for Z directives, the restricted keywords are:
    • The string //*%OPC
    • The following command names:
      • BEGIN
      • END
      • FETCH
      • NOP
      • SCAN
      • SEARCH
      • TABLE
    • The keyword to the left of each equals sign:
      • ACTION
      • COMP
      • EXIT
      • MEMBER
      • NAME
      • PHASE
    • Certain values to the right of the equals sign:
      • APPL
      • EXCLUDE
      • GLOBAL
      • INCLUDE
      • NOAPPL
      • NOGLOBAL
      • NOSCAN
      • SETUP
      • SUBMIT
    The use of variables that contain SCAN terminating keywords should be avoided.
You can substitute the following directive variables:
  • Table name in the TABLE directive
  • Member name in the FETCH directive
  • Exit name in the FETCH directive
  • All variables in the comparison expressions on the FETCH, INCLUDE, and EXCLUDE directives

Other directive variables, such as the stepname in the ERRSTEP keyword of the RECOVER statement, cannot be substituted.