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
 

 

Is refer Back possible for VSAM files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Is refer Back possible for VSAM files.
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 16, 2008 3:46 am    Post subject:
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

Site Director


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

PostPosted: Tue Sep 16, 2008 5:58 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 16, 2008 11:35 am    Post subject:
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    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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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