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


Please Help Members By Posting Answers For Below Questions

What do you understand by jcl?

618


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

619


define cond parameter in jcl?

759


Is there any command to check wether the ps file is in sorted order?

2416


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2252






Explain the purpose of dd dummy statement?

658


What parameters can be used to limit the number of records written to a sysout dataset?

733


How to submit jcl through a cobol program?

664


Explain how can an in-stream dataset be terminated?

682


In job processing, what happens in conversion stage?

722


What does a disposition of (MOD,DELETE,DELETE) mean ?

652


What is the purpose of disp parameter?

633


Explain the function of dd name parameter with a 2 part structure; audit.report?

884


what is “Cond= even” and “Cond=only”?

728


Differentiate between the joblib and the steplib statements?

847