Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



I have Job A and Job B. I want to trigger Job B from Job A. Please advise...

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

I have Job A and Job B. I want to trigger Job B from Job A. Please advise...

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

Post New Answer

More JCL Interview Questions

Is it possible to left uncode disp? If yes, how?

0 Answers  


I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.

2 Answers   Syntel,


what is fixed length and variable length and difference between them

1 Answers   CGI, Wipro,


Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance

2 Answers   Cap Gemini,


What statement marks the end of an in-stream or catalogued procedure?

1 Answers  






in production region 100 steps are running,but i need to run only step5 without changing code how can i do it?

4 Answers   HCL,


WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.

1 Answers  


How does jcl act on code(if you take a cobol program)?

0 Answers  


Can we write same stepname for one or more steps in on job ?

2 Answers  


What is the purpose of dd * statement in jcl?

0 Answers  


How do you restart a step in JCL?

12 Answers   HSBC,


what operation is performed by job statement?

0 Answers   IBM,






Categories