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
In sms datasets, what is the function of the dd avgrec keyword?
Matching Logic in Jcl not in cobol.Could any one please answer this question
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What is multithreading in jcl?
In job processing, what happens in execution stage?
what is use of disp parameter in dd statement?
Is acct parameter mandatory?
how do you access an uncataloged dataset in a jcl?
Where & How Do You Code Identifier In Jcl?
What is condition checking in jcl? Is this possible?
Why include statement is used in a jcl?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is the significance of addrspc parameter in exec statement?
what happens in conversion stage in job processing?
Can I share my data with other jobs? How?