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: 7931
Location: Bellevue, IA

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 how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


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