Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Proposal for a new DISP Parameter

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Proposal for a new DISP Parameter
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Apr 07, 2005 10:26 am    Post subject: Re: DISP Parameters
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    Post subject: Re: DISP Parameters
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Apr 20, 2005 11:37 pm    Post subject: Re: DISP Parameters
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    Post subject: HOW RpL works in Dispostion
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: 464

PostPosted: Thu Sep 01, 2005 2:37 pm    Post subject: Re: DISP Parameters
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    Post subject:
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    Post subject: Reply to: Proposal for a new DISP Parameter
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us