Hi
Thank you, it is exactly the problem .
The dataset not opened in the job step at all.
But in DASD the new generation exists, so if someone opens the actual
new generation, he will get an empty disk dataset, but for TAPE he will
get the last nonempty one.
If you know this, it is o.k, if not and you change from DISK to TAPE you
will get a surprise.
On 2/21/2012 2:25 PM, McKown, John wrote:
If I understand you correctly, you're saying that the +1 generation gets catalogued if on a disk, but not if
on a tape. In a disk SMS environment, the creating of a disk dataset and cataloging thereof causes no problem
because SMS usually "initializes" the dataset with an end-of-file. In the case of a tape dataset,
the dataset is "initialized" only if an OPEN is done on it. I don't know how it is done, but z/OS
does not catalog a tape dataset which was not OPEN'ed. The "solution" is to OPEN the tape dataset.
If you can't do it in any other way, you could always use IEBGENER to copy a DD DUMMY (0 records) to the
tape. Either with DISP=(NEW,CATLG) on a step before the current step, changing the current step to
DISP=(MOD,CATLG). Or on a subsequent step with DISP=(MOD,CATLG). At least, this is how I do it.
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
john.mck...@healthmarkets.com * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
-----Original Message-----
From: IBM Mainframe Discussion List
[mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Miklos Szigetvari
Sent: Tuesday, February 21, 2012 4:11 AM
To: IBM-MAIN@bama.ua.edu
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 lists...@bama.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN