Shaikh Riazur Nabi Beginner
Joined: 11 Aug 2005 Posts: 6 Topics: 5
|
Posted: Wed Nov 23, 2005 2:36 am Post subject: Queries regarding JCL |
|
|
Hi,
Please, try to help me regarding my following two queries.
Q1.What is the basic difference between DISP=KEEP and DISP=CATLG? can i use a dataset which has been created in one job with DISP=KEEP in another job?
Q2.Can i concatenate 10 tape datasets? If it is possible then how?
Thanks,
Shaikh Riazur Nabi |
|
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 23, 2005 4:28 am Post subject: |
|
|
Shaikh Riazur Nabi,
Quote: |
Q1.What is the basic difference between DISP=KEEP and DISP=CATLG? can i use a dataset which has been created in one job with DISP=KEEP in another job?
|
KEEP - Indicates that the data set is to be kept on the volume if this step terminates normally. Without SMS, only KEEP is valid for VSAM data sets. With SMS, all dispositions are valid for VSAM data sets; however, UNCATLG is ignored. For new SMS-managed data sets, KEEP implies CATLG.
Quote: |
Q2.Can i concatenate 10 tape datasets? If it is possible then how?
|
Yes, you can do this but you just have to specify the VOL numbers individually like this.
Code: |
//R010 EXEC PGM=SORT
//SORTIN DD DSN=MY.TAPE.FILE1,DISP=SHR,VOL=SER=(12345)
// DD DSN=MY.TAPE.FILE2,DISP=SHR,VOL=SER=(67890)
// DD DSN=MY.TAPE.FILE3,DISP=SHR,VOL=SER=(13579)
.....
|
Hope this helps,
Thanks,
Phantom |
|