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

Deleting 2 PSs in the same step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashwinjeerigi

New User


Joined: 20 Jun 2004
Posts: 12
Location: BANGALORE

PostPosted: Tue Jun 22, 2004 8:55 pm
Reply with quote

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
View user's profile Send private message
rick

New User


Joined: 18 Jun 2004
Posts: 59
Location: Chennai

PostPosted: Wed Jun 23, 2004 1:02 pm
Reply with quote

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
View user's profile Send private message
gkchakri
Currently Banned

New User


Joined: 07 Jun 2004
Posts: 9
Location: Bangalore

PostPosted: Wed Jun 23, 2004 2:34 pm
Reply with quote

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
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Thu Jun 24, 2004 12:57 pm
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat Jul 03, 2004 12:56 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Deleting a Tape file JCL & VSAM 14
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top