Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Deleting 2 PSs in the same step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting 2 PSs in the same step
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    Post subject:
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    Post subject: hai
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: 151
Location: Tokyo, Japan

PostPosted: Thu Jun 24, 2004 12:57 pm    Post subject:
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    Post subject: Re
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    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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm
No new posts Extract specific step spool data enrico-sorichetti JCL & VSAM 1 Thu Feb 04, 2016 9:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us