View previous topic :: View next topic
|
Author |
Message |
ashwinjeerigi
New User
Joined: 20 Jun 2004 Posts: 12 Location: BANGALORE
|
|
|
|
How do you delete 2 PSs in the same job step.
You are to use a single exec statement...
u can use 2 DD statements...
But r not supposed to code both the DD statements in the same manner.
For eg
//DD1 DD DSN=IRMH04.PS1,DISP=(OLD,DELETE)
//DD2 ????????????????????????????????????????
Hope I will get a quick answer.
Ashwin |
|
Back to top |
|
|
rick
New User
Joined: 18 Jun 2004 Posts: 59 Location: Chennai
|
|
|
|
Hi ,
You can delete both the PS in the same job step by Coding DISP=(OLD,DELETE) in both the DD statements. |
|
Back to top |
|
|
gkchakri Currently Banned New User
Joined: 07 Jun 2004 Posts: 9 Location: Bangalore
|
|
|
|
hai ashwin,
i think it is possible by:
//DD1 DD DSN=IRMH04.PS1,DISP=(OLD,DELETE)
//DD2 DD DSN=IRMHO4.PS2,DISP=(SHR,DELETE)
check out once,
bye,
gkchakri |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
If I won't misunderstood the question, you can use IDCAMS.
Code: |
//DELETE EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE PS1
DELETE PS2
/*
//* |
Please tell me that whether my understanding is correct or not.
Regards,
Sandip. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Good Question... But I beleive no answer........
Anyway I will give an ANSWER fo this cute question...
Create a catalog procedure with two DD statement, then call this in your program, then override one DD statement to delete... (ha ha ha!) |
|
Back to top |
|
|
|