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

WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1043


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

949


How can a fb file convert to vb file using sort program?

809


Explain about LMQUERY�give a dialog information about a data set

907


Name what parameter directs the output of the job log dataset?

567






define cond parameter in jcl?

779


write a jcl to execute a job by 7:00 am on jan 20,1986?

703


how can the same proc be re-used and called by many jobs?

915


What parameter directs the output of the job log dataset?

769


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

708


a dd statement has 2 types of parameters. Name them?

655


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2001


Name the statement which can be used to send data to another mvs jes3 node?

609


What is the function of the steplib dd statement?

746


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1972