I don't know what your shop standards are in the applications area, but for 
audit and traceability reasons EVERY file in our shop always gets at least a 
header record with origin information (i.e., what program/application wrote it 
and on what date at what time) and frequently also a trailer record with a 
record count and termination time.  That kind of standardization would solve 
your problem immediately, unless the program in the job is vendor code for 
which you do not have source.

An all-JCL solution would be to use DISP=(NEW,PASS) for the GDG "creation" step 
and then an IEBGENER step with the GDG as SYSUT2 with DISP=(MOD,CATLG) and 
SYSUT1 of DUMMY.  You might also need RECFM, LRECL and BLKSIZE on the SYSUT1 
DUMMY to get it to work cleanly.

HTH

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Miklos Szigetvari
Sent: Tuesday, February 21, 2012 5:11 AM
To: [email protected]
Subject: Empty GDG dataset handling question

Hi

We generated GDG's from a job. ,
The problem is with EMPTY GDG , for DISK , the dataset exists , for tape 
no new generation
Can we handle this from JCL ?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to