Excellent idea. Annoying that something like this wasn't implemented decades ago.

However, in the spirit of SHARE requirements, "Ask IBM for the required function; Don't tell them how to do it", I'll offer a stab at it.

"We would like a disposition parameter, for illustration purposes we'll call DISP=NEWO (for NEW or OLD), which would work exactly like DISP=MOD except that the read/write pointer would be positioned at the beginning of the dataset, as opposed to DISP=MOD pointing it to the end of the dataset."

Not a SHARE member here. Maybe someone who is might want to take off and run with this?

--
Jeff


McKown, John said the following on 2/23/2012 4:47 PM:
On second thought, the easiest thing might be to have the initiator do a catalog lookup. 
If the DSN exists, change the DISP to OLD, which overwrites the old data, only IF THE 
DATASET IS OPENED. If the DSN does not exist, change the DISP to NEW. But I'd still 
prefer that the initiator do a SCRATCH and reallocate the dataset, but do this at step 
initiation. CA-11scratches all NEW datasets when it executes (as the first step in the 
job). So, if the creating job step is flushed, the dataset ceases to exist.Which may or 
may not be a "good thing".

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets®

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 
orproprietary 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® is the brand name for products underwritten andissued 
by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life 
Insurance Company®, 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 McKown, John
Sent: Thursday, February 23, 2012 3:35 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Thought: new DISP "status" function

A good question. The simpliest thing was to have the
INITIATOR write an EOF to the dataset and then make the
access method use MOD. This should be a minimal change. IMO,
the best thing to do would be to have the initiator do a
catalog lookup and scratch the dataset if it exists, then do
NEW processing to redrive SMS and allocation.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets®

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® is the brand name for products underwritten
and issued by the insurance subsidiaries of HealthMarkets,
Inc. -The Chesapeake Life Insurance Company®, 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 Frank Swarbrick
Sent: Thursday, February 23, 2012 3:30 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Thought: new DISP "status" function

I like it.

John: What would your expectation be if the characteristics
of the existing dataset were different than those specified
on the DD.  SPACE and the like.  Would this new parm alter
the characteristics as specified on the DD, or would they say
the same?

Frank




________________________________
From: Mike Schwab<mike.a.sch...@gmail.com>
To: IBM-MAIN@bama.ua.edu
Sent: Thursday, February 23, 2012 1:39 PM
Subject: Re: Thought: new DISP "status" function

DISP=REUSE or DISP=(REUSE,CATLG) in case of additional volumes.

On Thu, Feb 23, 2012 at 2:28 PM, McKown, John
<john.mck...@healthmarkets.com>  wrote:
We all know that you can specify DISP=OLD|SHR|NEW|MOD for
a dataset. I just had another wacky thought of a new one that
I would like. I can't really think of a good, three
character, value for it. But what it would do is what UNIX
does with a PATHOPTS=(OTRUNC,OCREAT). It would, like MOD,
either reuse an existing allocation, or create a new one.
But, unlike MOD, it would not add to the end, but put an EOF
at the beginning of the dataset and start writing over the
old data. What do others think?

John McKown

--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?


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

Reply via email to