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

what are the symbolic parameters? why do we use symbolic parameters ?

2 Answers   IBM, TCS, UST, Xansa,


1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent

4 Answers   Mind Tree,


What is a JCL Command statement ?

1 Answers   IBM,


how you will the direct the data to spool using sysout option?

0 Answers   IBM,


I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

3 Answers   CTS, DELL,






When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


Can we change a FB file to VB file in JCL? Please help

1 Answers  


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........

2 Answers  


What is the difference between catalogue procedure and In-Stream procedure?

2 Answers  


you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.

3 Answers  


Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?

2 Answers  


Categories