To expand on what Gil said, just use NEW and remove the CATLG DELETE...  From 
the FM:

NEW
(non-VSAM only, unless SMS is running) indicates the data set does not exist 
and it is to be created. For new partitioned data sets, you must specify the 
DIR operand unless its data class provides a default value for it. For more 
information, see z/OS DFSMSdfp Storage Administration. If you specify a data 
set name, a NEW data set is kept and cataloged. If you do not specify a data 
set name, it is deleted when you free it or log off.
SMS manages data sets that were allocated with a disposition of NEW while SMS 
was active.

Later in the same section it talks about CATLG and DELETE as dispositions, and 
it looks like it just takes the last one specified.

KEEP | DELETE | CATALOG | UNCATALOG
KEEP 1
Specifies the data set is to be retained by the system after it is freed. If 
the data set is SMS-managed, KEEP has the same effect as CATALOG.
DELETE 1
Specifies the data set is to be deleted after it is freed. If the data set is 
SMS-managed, DELETE also forces UNCATALOG.
CATALOG 1
Specifies the data set is to be retained by the system in a catalog after it is 
freed.
UNCATALOG 1
Specifies the data set is to be removed from the catalog after it is freed. If 
the data set is not SMS-managed and you do not want the system to retain the 
data set, you must also specify the DELETE operand.

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Paul Gilmartin
Sent: Thursday, July 17, 2025 10:57 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Re: Contention problem TSO and batch job

On Thu, 17 Jul 2025 11:32:16 -0400, Joseph Reichman wrote:

>This is from my job at the irs so I can’t cut and paste as I have 
>trouble sending outbound email From x...@irs.gov
>
In a similar situation (but not breaking any rule), I photograpned the screen 
with my iPhone, uploaded, and used Preview->Tools->Text Selection and copied 
selected text.

>So here goes
>
> ALLOC FI(‘O7010111) NEW CATALOG DELETE
>DA(‘IFU05.BMF701.C39.O7010111’) USING(DCBPARAM) SPACE(15,15) CYLINDERS
>STORCLAS(STANDARD) MGMTCLAS(MTSOPRM)
>
The syntax diagram in: 
<https://urldefense.com/v3/__https://www.ibm.com/docs/en/zos/3.1.0?topic=command-allocate-syntax__;!!KjMRP1Ixj6eLE0Fj!v0jSWTCFzgXOjqoMX41-ftMr4YIN-xu62FyHeovBJzzXGngpp1qIwK7CFZEwzbk-YfjgfX2sA9-JeQNl2FyWzhvS1DZ_Zmd8uZCU$
 >

shows DELETE and CATALOG as mutually exclusive.  Does ALLOCATE not provide an 
error message?

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to