Using batch job to bypass a job and to rerun a job in OPC



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Using batch job to bypass a job and to rerun a job in OPC

Postby skwo2 » Thu Sep 19, 2019 12:40 pm

1) I am trying to write a batch job which will bypass a job in an OPC on current plan.

I got the reference materials here:
https://www.ibm.com/support/pages/sched ... -batch-job

Inside, it gives an example
ACTION=MODIFY,RESOURCE=CPOP,ADID=MYAPP1,OPNO=020,
IA=0810010930,WSNAME=RLSE;

I follow it but my job errors:
EQQM933E WORK STATION RLSE NOT FOUND FOR OPERATION

2) I am trying to use the OPC RECOVER statement to rerun a job which has a status = C. Nothing happens.
Does the OPC RECOVER statement only work for job with status = E?

Thanks for your help.
skwo2
 
Posts: 1
Joined: Thu Sep 19, 2019 12:31 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Using batch job to bypass a job and to rerun a job in OP

Postby Blackthorn » Wed Sep 25, 2019 4:06 am

1) The error seems clear enough. The work-station RLSE does not exist. Do you believe that it does? RLSE is just an example work-station in the manual. Do you have a work-station of that name?

2) Yes. The purpose of the %OPC RECOVER statement is to recover a job that has failed. Hence they are only processed if the job ends in error.

On what basis does the batch job you are writing decide whether or not to bypass the other job? I would be inclined to set a return code and then use conditional dependencies to flush the other job. Much easier that coding up all the PIF statements.

These users thanked the author Blackthorn for the post:
skwo2 (Wed Sep 25, 2019 5:45 am)
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times


Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post