| Author |
Message |
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 200 Location: Keane India Ltd., Hyderabad
|
|
|
|
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 |
|
 |
References
|
Posted: Wed Apr 06, 2005 8:49 pm Post subject: Re: Proposal for a new DISP Parameter |
 |
|
|
 |
atul
New User
Joined: 06 Apr 2005 Posts: 3
|
|
|
|
HI,
I think it's not poosible in 1 step.
Correct me if i am wrong
Atul |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 2921 Location: Charlotte,NC USA
|
|
|
|
| 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 |
|
 |
machswap
New User
Joined: 19 Apr 2005 Posts: 14
|
|
|
|
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 |
|
 |
andycool
Active User
Joined: 12 Apr 2005 Posts: 65
|
|
|
|
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 |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 2921 Location: Charlotte,NC USA
|
|
|
|
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 |
|
 |
prasanth_thavva
Active User
Joined: 28 Jul 2005 Posts: 103 Location: Bangalore
|
|
|
|
hi,
could u plz provide me information about
| Quote: |
| RPL...in DIsposition |
Bye |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 492
|
|
|
|
Hi Prasanth,
Disp=RPL does not exist in mainframe. It was proposed by Superk.
Regards
Rupesh |
|
| Back to top |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1421
|
|
|
|
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. Maybe not.
Some sites have permanent reps to these orgs. You might want at ask around at your shop. |
|
| Back to top |
|
 |
jitendersinghbhiwani
New User
Joined: 15 Jun 2007 Posts: 2 Location: Chennai
|
|
|
|
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 |
|
 |
|
|