Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8280
Location: Dubuque, Iowa, 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: 8657
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us