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
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
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 ?
How can a fb file convert to vb file using sort program?
Explain about LMQUERY�give a dialog information about a data set
Name what parameter directs the output of the job log dataset?
define cond parameter in jcl?
write a jcl to execute a job by 7:00 am on jan 20,1986?
how can the same proc be re-used and called by many jobs?
What parameter directs the output of the job log dataset?
What is the function of dd name parameter with a 2 part structure; audit.report?
a dd statement has 2 types of parameters. Name them?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
Name the statement which can be used to send data to another mvs jes3 node?
What is the function of the steplib dd statement?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE