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

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


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
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
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: 26
Location: chennai

PostPosted: Wed Jun 04, 2008 9:37 am
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: 355
Location: New York

PostPosted: Wed Jun 04, 2008 9:39 am
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
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 04, 2008 11:52 am
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: 355
Location: New York

PostPosted: Wed Jun 04, 2008 12:23 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jun 04, 2008 1:29 pm
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: 1702
Location: Australia

PostPosted: Wed Jun 04, 2008 2:32 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top