Answer Posted / pradeep
The IEBGENER can be used to call one JCL from another JCL,
example:
//TEST003 JOB 'SORT002',MSGCLASS=X,CLASS=T
//*
//STEP001 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
Here the TEST003 Job when submitted, we inturn submit the
JCL member XXX.GENERAL.STUDY(TEST001)
Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
Is acct parameter mandatory?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How is a type of file defined in the jcl that executes the cobol program?
Brief description of inline procedure of jcl.
define cond parameter in jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
What is the function of the dd mgmtclas keyword in sms datasets?
How do you overcome this limitation ?
how can the same proc be re-used and called by many jobs?
which utility is used to run a cobol-db2 program?
what is the purpose of coding notify parameter in job statement?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
How can unused space allocation be returned to the system when a dataset is closed?