mail_ssb
New User
Joined: 26 Mar 2005 Posts: 17
|
|
|
|
Hello,
As I understand, DISP=PASS, makes the dataset available as such for subsequent steps in JCL. Why should'nt one just explicitly code the dataset again on the DD of any subsequent JCL step...?
(1) Is there any specific advantage in coding DISP=PASS over a dataset..?
(2) DISP=PASS is sometimes used with temp datasets. Does it imply that PASSed datasets exist only throughout the "life" of jcl..?
(3) Should DISP=PASS be used with only temp datasets..?
Thanks for your help on this one..! |
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
Use PASS only when you are creating temporary datasets. When creating permanent datasets, you should use CATLG rather than PASS, or your permanent dataset may be deleted. PASS'ed temporary datasets are deleted at "end of job", however, may be deleted earlier in the job if you read the temporary dataset back in a job step with DISP=(OLD,DELETE). If you have to READ a tape dataset into several job steps, you would want to use a VOL=(,RETAIN) parameter to prevent the tape from having to be re-mounted multiple times within the same job. |
|