IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Proposal for a new DISP Parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Wed Apr 06, 2005 8:49 pm
Reply with quote

Hi Everyone,

Please find the answer for my que.

I want to use a DISP combination such that it will

- Delete the data set if exists and create it as NEW
- Does not exists just create it.

I write the DISP=(NEW,CATLG,DELETE) but i am getting an error if dataset already exists. So please suggest me the DISP parameters for doing the above ONLY IN ONE STEP.

I solved the above problem in 2 steps as

DISP=(MOD,DELETE,DELETE) --- 1 step
DISP=(NEW,CATLG,DELETE) ---- 2nd step.

But I need it in one step. will you do it for me.

Thanks,
Reddy.
Back to top
View user's profile Send private message
atul

New User


Joined: 06 Apr 2005
Posts: 3

PostPosted: Thu Apr 07, 2005 9:38 am
Reply with quote

HI,
I think it's not poosible in 1 step.
Correct me if i am wrong

Atul
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 07, 2005 10:26 am
Reply with quote

For many, many years now, without any luck, I have been pushing the user community (via technical forums such as this one) to adopt a new parameter "RPL (replace)", as in "DISP=(RPL,CATLG,DELETE)". So far, I have not been able to convince anyone with enough influence to bring this to IBM and have it become an RFP (Request For Proposal) for an enhancement.
Back to top
View user's profile Send private message
machswap

New User


Joined: 19 Apr 2005
Posts: 14

PostPosted: Wed Apr 20, 2005 4:55 pm
Reply with quote

Hi,


Instead, u can use disp=(new,keep,delete) so that when the job runs
for the first time the dataset is created newly, keep will retain the dataset until the job runs. Hence next time when u again try to run the job there will not be any problem.[/i]
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Wed Apr 20, 2005 10:11 pm
Reply with quote

Hi SuperK
Can you please let us know how does the DISP=(RPL,CATLG,DELETE) works.

RPL--???
CATLG --will catlg the dataset if the job runs fine.
DELETE -- will delete the dataset if the job gets abended.

M i right here in atlest the two mantioned above?
Can you please fill in the blank above ?

Regards,
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 20, 2005 11:37 pm
Reply with quote

My proposal is that RPL would:

1. DELETE the dataset if it already exists, then treat the disposition exactly like NEW

or

2. If the dataset does not already exist, then treat the disposition exactly like NEW.
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Thu Sep 01, 2005 2:28 pm
Reply with quote

hi,
could u plz provide me information about
Quote:
RPL...in DIsposition

Bye
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Sep 01, 2005 2:37 pm
Reply with quote

Hi Prasanth,

Disp=RPL does not exist in mainframe. It was proposed by Superk.

Regards
Rupesh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Feb 19, 2008 1:07 am
Reply with quote

One way to get IBM's attention for a proposed change is through GUIDE or Share two IBM user group organizations.

If you're a member you can agitate/politic for your cause and IBM might "take it under advisement" and if you're lucky, they may include it in their next release. By that time you'll be long retired. icon_smile.gif Maybe not.

Some sites have permanent reps to these orgs. You might want at ask around at your shop.
Back to top
View user's profile Send private message
jitendersinghbhiwani

New User


Joined: 15 Jun 2007
Posts: 2
Location: Chennai

PostPosted: Fri Mar 07, 2008 5:53 pm
Reply with quote

Hi,

you can use UCC11 utility immediately after the job statement in your JCL
like this:

//UCC11 EXEC UCC11,RUNTYPE=P

This utility will delete all the existing files used in your job.

Then you can use DISP=(NEW,CATLG,DELETE) for your file directly. IF this file exists already, it will be automatically deleted first by UCC11, then a new file will be allocated. IF it doesn't exist already then it is not a problem.

Hope your problem is solved.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top