IEBGENER will create a real dataset with an end of file that can be 
successfully opened and read. IEFBR14 creates only a 'null' file. Most programs 
trying to open and read a 'null' file will fail. 

I can think of several scenarios where an empty, readable file is needed. 


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Elardus Engelbrecht
Sent: Tuesday, May 18, 2010 5:26 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: What is the difference between starting a cataloged procedure and 
submitting a JCL

Jason Cai wrote

//STEP1   EXEC PGM=IEBGENER                                  
//SYSUT1  DD DUMMY,DCB=(LRECL=133,RECFM=FB)                  

Why are you using empty SYSUT1 with IEBGENER in both jobs? Is something 
wrong with using IEFBR14?

Groete / Greetings
Elardus Engelbrecht

 
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to