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 is S322 abend ?

5 Answers  


How do you submit a job for execution?

0 Answers  


Can anyone tell me the syntax for printing two files at two different destinations in a single step?

3 Answers  


Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?

1 Answers   IBM,


Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?

4 Answers   IBM,






I have one GDG. Everyday One new version is being created.Now I want to split this created version in different files each having 1000 records. Here Problem is I don't know How many records will be there in new version of GDG? that's why I don't know How many Out files we need to use . Interesting??????????????

4 Answers   CTS,


What is a GDG

4 Answers   IBM,


Explain how can values be passed from the job stream to an executable program?

0 Answers  


What is the function of dd disp parameter?

0 Answers  


i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?

10 Answers   IBM,


wht do u mean by internal reader in jcl ? wht is the use of internal reader ?

1 Answers   Syntel,


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

3 Answers   CTS, DELL,


Categories