View previous topic :: View next topic
|
Author |
Message |
kennedy_zhu
New User
Joined: 30 Nov 2007 Posts: 27 Location: China
|
|
|
|
what's the different between parameter 'keep' and 'pass' using in disp statement? |
|
Back to top |
|
|
mighty
New User
Joined: 21 May 2008 Posts: 26 Location: chennai
|
|
|
|
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 |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
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 |
|
|
kennedy_zhu
New User
Joined: 30 Nov 2007 Posts: 27 Location: China
|
|
|
|
Got it. Thx. : ) |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not try it out and see what happens ? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
|