View previous topic :: View next topic
|
Author |
Message |
kvskris Currently Banned New User
Joined: 16 Sep 2006 Posts: 12
|
|
|
|
hello,
i want to know what are the Advantages of using keep and Pass in jcl.
regards,
kumar |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
what are the Advantages of using keep and Pass in jcl. |
Advantage over what ?
KEEP & PASS are subparameters for DISP parameter coded in a JCL step for a dataset.
KEEP tells to keep the dataset after processing of the job, whereas PASS says dont keep this dataset once the job is completed. |
|
Back to top |
|
|
prashanth1
New User
Joined: 27 Sep 2006 Posts: 47 Location: Hyderabad
|
|
|
|
1) PASS can be used to pass the file to the very next step.
2) KEEP can be used to pass the file all the steps which follows .
The file which is using DISP as (NEW, KEEP, DELETE) can not be viewed in 3.4 option
Pls correct Me, If I wrng |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Prashant,
Quote: |
Pls correct Me, If I wrng |
See what manual says on this.
Quote: |
PASS
Indicates that the data set is to be passed for use by a subsequent step in the same job.
With SMS, the system replaces PASS with KEEP for permanent VSAM and non-VSAM data sets. When you refer to the data set later in the job, the system obtains data set information from the catalog.
Notes:
1. A data set can be passed only within a job. |
|
|
Back to top |
|
|
prashanth1
New User
Joined: 27 Sep 2006 Posts: 47 Location: Hyderabad
|
|
|
|
Priyesh,
I am also saying the same. It can be passed to sub sequent step not to the steps.
Can you pls confirm to me that , whether it can be passed to sub sequent step or all the sub sequent steps.
Pls correct Me, If I wrng |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
Priyesh,
I am also saying the same. It can be passed to sub sequent step not to the steps. |
You want me to put out a definition of "SUBSEQUENT" from the dictionary.
I am referring to the comment you put in earlier thread.
Quote: |
1) PASS can be used to pass the file to the very next step. |
Its not very next step, it can go up to last step in the same job. |
|
Back to top |
|
|
toddnugen
New User
Joined: 01 Nov 2006 Posts: 9
|
|
|
|
Keep=Permanent
Pass=Temporary
Make everything as simple as possible, not simpler. Einstein |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
hi prasanth
u can use the dataset with PASS subparameter for more than one step in the same job. for ur query, IT CAN BE PASSED TO ALL SUBSEQUENT STEPS, NOT JUST ONE STEP....
hope its clear..
thanks
rakesh |
|
Back to top |
|
|
kvskris Currently Banned New User
Joined: 16 Sep 2006 Posts: 12
|
|
|
|
keep - dataset will be allocated, but kept in uncatelogged. In subsequent if you want, then give disp=old.
For a use in subsequent steps, dataset will be kept and will be made use at next step by mentioning volume serial.
pass - information about creation of dataset is stored at PDIT. For accession in steps we have to refer from PDIT.
when volume serial is not known, pass is used. volume serial is not required, disp=old you give.
this is the information upto my knowledge what i have gathered from my
sir.
if you guys know more about this, inform it, please
thank you,
regards
kumar |
|
Back to top |
|
|
aroraranjan22
New User
Joined: 16 Oct 2006 Posts: 3
|
|
|
|
Disposition KEEP means that the dataset is allocated (permanently) but not cataloged. This means that the next time (after completion of jcl), if that dataset needs to be referred, then the VOLSER of that dataset also needs to be specified to access the dataset. Even if that dataset needs to be accessed thru 3.4 option, VOLSER is to be specified.
Disposition PASS means that the dataset is allocated temporarily and shall be deleted automatically at the end of the jcl. Disposition PASS is used generally for allocating temporary datasets (&& type) and which are not required after the end of that jcl). The dataset created with DISP=PASS can be referenced in any of the subsequent steps in that jcl. |
|
Back to top |
|
|
|