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

Advantages of using keep and Pass in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kvskris
Currently Banned

New User


Joined: 16 Sep 2006
Posts: 12

PostPosted: Sat Oct 28, 2006 9:32 am
Reply with quote

hello,

i want to know what are the Advantages of using keep and Pass in jcl.


regards,

kumar
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Oct 28, 2006 10:51 am
Reply with quote

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
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Mon Oct 30, 2006 10:44 am
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Oct 30, 2006 9:14 pm
Reply with quote

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
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Tue Oct 31, 2006 5:26 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Nov 01, 2006 5:46 am
Reply with quote

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
View user's profile Send private message
toddnugen

New User


Joined: 01 Nov 2006
Posts: 9

PostPosted: Wed Nov 01, 2006 7:04 am
Reply with quote

Keep=Permanent
Pass=Temporary
Make everything as simple as possible, not simpler. Einstein icon_wink.gif
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Wed Nov 01, 2006 12:58 pm
Reply with quote

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
View user's profile Send private message
kvskris
Currently Banned

New User


Joined: 16 Sep 2006
Posts: 12

PostPosted: Sat Nov 04, 2006 10:07 am
Reply with quote

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
View user's profile Send private message
aroraranjan22

New User


Joined: 16 Oct 2006
Posts: 3

PostPosted: Tue Nov 07, 2006 11:09 am
Reply with quote

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
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 -> JCL & VSAM

 


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 pass data as symbolic parameter from ... CLIST & REXX 2
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
No new posts How to pass arguments in a ISPSTART c... CLIST & REXX 6
Search our Forums:

Back to Top