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
 

 

How to code DISP parameter to use the same output dasaset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
humpty
Warnings : 1

New User


Joined: 01 May 2005
Posts: 23

PostPosted: Tue Oct 18, 2005 6:51 pm    Post subject: How to code DISP parameter to use the same output dasaset
Reply with quote

hi everyone..

i am new user to mainframe programming. i have recently gone through JCL. i am little confused for DISP keyword. When i submit a JCL which includes output in a new PS..... for example : when i merge or sort the data in one PS and get the output in the new PS, i need to change the name of the PS, everytime i submit the JCL. is there any part of code that i may not need to rename the output PS i.e everytime i submit a JCL, first it may check for the PS in which i want the output. Incase the PS exist it may delete the same and in case no such PS exists then it may create the new PS for the output.

guidence needed.
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Tue Oct 18, 2005 8:17 pm    Post subject: Re: Query for Disposition keyword...
Reply with quote

HI,

Quote:
Incase the PS exist it may delete the same and in case no such PS exists then it may create the new PS for the output.


I believe these is no such Disp parameter for the same.

You can use DISP=Shr, if you do not want to delete the existing PS. It will just Overright it.

Hope It clears your doubt.

Regards

Rupesh
Back to top
View user's profile Send private message
humpty
Warnings : 1

New User


Joined: 01 May 2005
Posts: 23

PostPosted: Wed Oct 19, 2005 9:05 am    Post subject: Re: Query for Disposition keyword...
Reply with quote

thanks rupesh for ur interest.

though i have not tried the suggested instruction, however, you understand the issue. i actually want to override the pre-existing PS. let me try the same.

icon_razz.gif
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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm


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