HCL Workload Automation, Version 9.4

Read JCL Job

Describes how to read a JCL job with the API.

The parameters to read a JCL job are:
  • The job key, which consists of the library name and the JCL job name
  • A boolean value to determine whether to lock the job after reading it

The command returns the JCL job identified by the job key.

The following example code reads a specific JCL job in a specific job library:
JCLKey jobk1 = new JCLKey("TWSSD.CWSD64.JOBLIB","MYJCL1");

JCL jobJCL = (JCL)model.getTWSObject(JCL.class, jobk1, false, null);