Remove JCL Job
Describes how to remove a JCL job with the API.
First read the JCL job and lock it:
JCLKey jobk1 = new JCLKey("TWSSD.CWSD64.JOBLIB","MYJCL1");
JCL jobJCL = (JCL)model.getTWSObject(JCL.class, jobk1, true, null);
The parameters to remove a JCL job are:
- The job key, which consists of the library name and the JCL job name
The following example code removes a JCL job that has already been
read and locked:
model.removeTWSObject(JCL.class, jobk1, null);