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
 

 

Advantages of using keep and Pass in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Advantages of using keep and Pass in jcl
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: 1452
Location: Chicago, IL

PostPosted: Sat Oct 28, 2006 10:51 am    Post subject: Re: Advantages of using keep and Pass in jcl
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Mon Oct 30, 2006 9:14 pm    Post subject: Re: Advantages of using keep and Pass in jcl
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Wed Nov 01, 2006 5:46 am    Post subject: Re: Advantages of using keep and Pass in jcl
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    Post subject: Re: Advantages of using keep and Pass in jcl
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    Post subject:
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    Post subject: Re: Advantages of using keep and Pass in jcl
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    Post subject: Re: Advantages of using keep and Pass in jcl
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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
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
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts how to pass data from a rexx program ... Akshay Yadav TSO/ISPF 8 Mon Feb 15, 2016 12:05 pm
No new posts How to pass a structure to external p... Pedro PL/I & Assembler 8 Tue Jan 19, 2016 7:05 am


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