What does IEBGENER do?

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


Please Help Members By Posting Answers For Below Questions

Is acct parameter mandatory?

939


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2421


How is a type of file defined in the jcl that executes the cobol program?

920


Brief description of inline procedure of jcl.

913


define cond parameter in jcl?

997


Explain how can the disposition of sysout datasets be set for an entire jobstream?

846


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.

955


What is the function of the dd mgmtclas keyword in sms datasets?

1004


How do you overcome this limitation ?

907


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

1187


which utility is used to run a cobol-db2 program?

1036


what is the purpose of coding notify parameter in job statement?

897


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?

9422


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.

1996


How can unused space allocation be returned to the system when a dataset is closed?

1113