Actually, this was recently explained to me by IBM. (MOD,DELETE) indicates that the dataset might exist, if it does, then MOD it. If it does not, then create it and then delete it. But SPACE would be required in any case where the dataset did not exist. This would also be true for (MOD,KEEP). In this case, if the dataset did not exist it would be created, and KEPT, but not cataloged. SPACE would be required if the dataset did not exist.

Doug



At 01:46 AM 5/23/2007, you wrote:
Paul

You got my attention with the subject line, DISP=(MOD,DELETE), since I used to encourage students to consider using this "trick" in order to immunise their JCL against irritating errors when they had usually started task procedures relating to networking products and they didn't care whether or not a data set existed when the task was started. The types of data sets involved were for traces, logs and dumps.

Typically the started task procedure had an IEFBR14 step where the data sets were definitely erased if they happened to exist - from, typically of course, any previous execution - using the DISP=(MOD,DELETE) "trick". The IEFBR14 step was then followed by the "business" step.[1]

What you show in fact is DISP=(MOD,KEEP).

An explanation - not at all necessarily *the* explanation since it's very much a guess - for the IEF285I message is that, with DISP=MOD, logically the data set is considered to exist and thus it can logically be "kept". However, with, DISP=NEW, the data set is considered *not* to exist - and you get another error presumably earlier in the processing sequence if it does exist - and so, before it can be "kept", it must actually be created. In order to be created, the SPACE parameters are needed.

So *I* understand it. Of course whether or not I understand it correctly is quite another thing!

Chris Mason
snip>>>>>>>>>>>>>>>
----------------------------------------------------------------------
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

Doug Fuerst
Consultant
BK Associates
Brooklyn, NY
(718) 921-2620 (Office)
(718) 921-0952 (Fax)
(917) 572-7364 (Cell)
[EMAIL PROTECTED]

----------------------------------------------------------------------
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

Reply via email to