I have Job A and Job B. I want to trigger Job B from Job A.
Please advise.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mkgupta
Use terminal monitoring program like IKJEFT1B or IKJEFT01 and suppy tso submit command to submit the job.
SUBMIT PDS(MEMBER)
Use simple rexx code to submit the job.
Use iebgener to copy the jcl to intrdr.
| Is This Answer Correct ? | 0 Yes | 2 No |
What parameter directs the output of the job log dataset?
can we write a proc with in a proc
What is STEPLIB, JOBLIB? What is it used for?
What do you understand by jcl?
Where can program checkpoints be stored for use in a restart?
How to rename a VSAM file as well as it's index file?
Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?
What is Cataloged Procedures?
Can anyone tell me the syntax for printing two files at two different destinations in a single step?
Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????
in job stmt i coded time=(2,30) and in step 1 i coded time=(1,30) and in step i coded time=(1,30), whch one executes first and what happens if step1 and step2 time executes and wht about the remaining time if step and step2 executes
What are the common jcl syntax errors you get? This is not abends?