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
 

 

Different between parameter 'keep' and 'pass' using in disp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
kennedy_zhu

New User


Joined: 30 Nov 2007
Posts: 27
Location: China

PostPosted: Wed Jun 04, 2008 9:33 am    Post subject: Different between parameter 'keep' and 'pass' using in disp
Reply with quote

what's the different between parameter 'keep' and 'pass' using in disp statement?
Back to top
View user's profile Send private message

mighty

New User


Joined: 21 May 2008
Posts: 22
Location: chennai

PostPosted: Wed Jun 04, 2008 9:37 am    Post subject:
Reply with quote

KEEP - Dataset will be retained (This parameter should
be used with permanent data sets)
PASS - Dataset is to be passed subsequent job step in
the same job
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Wed Jun 04, 2008 9:39 am    Post subject:
Reply with quote

If you provide DISP=KEEP, that will be stayed on disc but it will not be catalogued. In future, if you want to access this dataset, you have to provide the Volume.

PASS will pass the dataset to next step and will get deleted after completion of JOB.

Yopu can find this info in manuals or in any JCL book.

KSK
Back to top
View user's profile Send private message
kennedy_zhu

New User


Joined: 30 Nov 2007
Posts: 27
Location: China

PostPosted: Wed Jun 04, 2008 10:46 am    Post subject:
Reply with quote

Got it. Thx. : )
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 04, 2008 11:52 am    Post subject:
Reply with quote

ksk wrote:
If you provide DISP=KEEP, that will be stayed on disc but it will not be catalogued. In future, if you want to access this dataset, you have to provide the Volume.

PASS will pass the dataset to next step and will get deleted after completion of JOB.

Depending on the SMS setup, coding KEEP will default to CATLG when creating a new dataset. I believe that this is the default.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Wed Jun 04, 2008 12:23 pm    Post subject:
Reply with quote

Hi Expat,

I read
Disposition on normal completion of the job step .

Quote:
KEEP - Default if OLD or SHR. If disk, maintain the VTOC entry.
e.g., DISP=OLD equivalent to DISP=(OLD,KEEP,KEEP)


I don't know depending on set up but by default, with KEEP parameter, dataset would be saved but not catalogued.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 04, 2008 1:29 pm    Post subject:
Reply with quote

Why not try it out and see what happens ?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Jun 04, 2008 2:32 pm    Post subject:
Reply with quote

Hi ksk,
the example you have given is for an already created dataset, so yes, DISP=OLD is equivalent to DISP=(OLD,KEEP,KEEP) and the dataset would have already been catalogued.

I agree with Expat, DISP=(,KEEP) in an SMS shop, the dataset would CATLG as it will not allow non CATLG datasets on the system.

Actually there is no DISP=KEEP in the Status Subparameter

Gerry
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 -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 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
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


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