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 |
Which statement is used to identify the private libraries in job?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
What is catelog procedure and how many catelog procedure to use in one job?
What parameters can be used to limit the number of records written to a sysout dataset?
i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?
How do you overcome this limitation ?
What is a procedure?
I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
How is the record format of an output dataset specified?
What is the use of the utility DFSRRC00 in the JCL?
What is the use of DSNDB07 ?