View previous topic :: View next topic
|
Author |
Message |
vjai6977
New User
Joined: 08 Aug 2008 Posts: 19 Location: Chennai
|
|
|
|
Hi All,
As we could be able to do a refer back on the DCB of the input file to catalog a new output file for any PS dataset or a GDG as given below
//STEP0001 EXEC PGM=ICEGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=TST01.GDG.INFILE(0), DISP=SHR
//SYSUT2 DD DSN=TST01.GDG.OTFILE(+1),
// DISP=(,CATLG,DELETE),UNIT=DISK,
// SPACE=(CYL,(10,1),RLSE),
// DCB=*.SYSUT1
Is it possible to create a VSAM to VSAM file, using refer back option, so that the new VSAM file shall get cataloged using the in VSAM file properties, of the Input VSAM file along with the data copied.
Regards,
Jai |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
VSAM files are not created through JCL -- they are created through IDCAMS. As such, you cannot use a refer back to copy attributes of VSAM files when defining a new one. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Unless something has changed recently, a vsam file cannot be a generation dataset.
FWIW. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Robert Sample wrote: |
VSAM files are not created through JCL -- they are created through IDCAMS. As such, you cannot use a refer back to copy attributes of VSAM files when defining a new one. |
Yes, you can define VSAM files via JCL and yes you can use attributes of an already existing cluster.
All you need to do now is to read THIS MANUAL to see exactly how it is done. |
|
Back to top |
|
|
|