IFF the file had been created on DASD you probably would not have seen a
problem. BUT because the file was created on a removeable media
(TAPE/CART), the CATALOG process does not complete until JOB END (which
I would think should be step end, but hey, what do I know?).
This happens whether or not the file is SMS managed when it comes to
"tape".
However, with DASD, DFP handles the cataloging very differently, and
even holds the new generation in a quasi done state so that if you have
a second job with (+1), it will get a new G0000V00 number.
Meanwhile, the GDG Base is held by the "TAPE" job for the duration,
which is what appears to have caused your problem.
Steve, I think you are wrong about this. I have never seen the behavior
you described for tape. As far as I know, the process is the same for
tape and disk.
I just ran a test. In step 1 I created and cataloged a new tape GDG
generation (I used a software VTS but it appears to be tape so it should
work). The second step went into a WAIT so that I could display the
ENQs.
As I expected, after the end of the GDG step, it cataloged the new
generation (the IEF285I CATALOGED message for the generation is in the
step termination messages of step1), and DEQed both the specific
generation and the GDG base name. the ENQ display showed that no SYSDSN
ENQs remained for the job.
Remember that it is true that a SYSDSN ENQ is held until the end of last
step that references the dataset. this is also true for GDG bases. My
test showed that this is true, both ENQs were released at the end of the
first step. But if you have a job that creates a GDG generation in one
step and reads it in another step, the GDG base name will be ENQed
EXCLUSIVE until the end of the later step (EXCLUSIVE is required when
creating a new generation).
--
Bruce A. Black
Senior Software Developer for FDR
Innovation Data Processing 973-890-7300
personal: [EMAIL PROTECTED]
sales info: [EMAIL PROTECTED]
tech support: [EMAIL PROTECTED]
web: www.innovationdp.fdr.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html