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 the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?

2 Answers   IBM,


what is the function of spool command?

4 Answers  


Matching Logic in Jcl not in cobol.Could any one please answer this question

0 Answers  


What is the significance of addrspc parameter in exec statement?

0 Answers  


Why we will create load module in PDS only, Why nt in PS?

2 Answers   TCS,






Explain how can the attributes of one sms dataset be copied to another dataset?

0 Answers  


What do you understand by the terms: joblib and steplib?

0 Answers  


How many extents are possible for a sequential file ? For a VSAM file ?

3 Answers  


What is dummy parameter in JCL??

3 Answers   TCS,


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

0 Answers  


Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one of those 5 dataset (say 3rd dataset)?

5 Answers   Cognizant,


How to read records in reverse order in flat file?

1 Answers  


Categories