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

Is refer Back possible for VSAM files.


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

New User


Joined: 08 Aug 2008
Posts: 19
Location: Chennai

PostPosted: Tue Sep 16, 2008 3:39 am
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 16, 2008 3:46 am
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 16, 2008 5:58 am
Reply with quote

Hello,

Unless something has changed recently, a vsam file cannot be a generation dataset.

FWIW. . .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 16, 2008 11:35 am
Reply with quote

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
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top