I have Job A and Job B. I want to trigger Job B from Job A.
Please advise.
Answer Posted / neeraj wadhwa
//JOB1 JOB (....),CLASS=X,MSGCLASS=X
//*
//STEP1 EXEC PGM=.....
//*
// IF (STEP1.RC > 0) THEN
//STEP2 EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=MY.JCL(JOB2)
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
// ENDIF
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How can a jobs execution priority be modified?
what happens in execution stage in job processing?
Brief description of inline procedure of jcl.
Suppose I have five jobs to do. But I want to hold one?
Which dd parameters are required?
What is the function of the dd dcb keyword?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Is it possible to left uncode disp? If yes, how?
Is it possible to define dd statements as you want?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
In sms datasets, what is the function of the dd mgmtclas keyword?
How to do automated restart when a job abend?
How can the attributes of one sms dataset be copied to another dataset?
What do you understand by the term notcat 2 – gs?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?