Can we 'refer back' VSAM files?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Vijay Ingle
New Member
Posts: 7
Joined: Mon Apr 28, 2014 4:12 pm

Can we 'refer back' VSAM files?

Post by Vijay Ingle »

Hi,

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

Code: Select all

//SYSUT1 DD DSN=ABCD.TEST.INFILE, DISP=SHR 
//SYSUT2 DD DSN=TEST.OUTFILE, 
// DISP=(,CATLG,DELETE),UNIT=DISK, 
// SPACE=(CYL,(10,1),RLSE), 
// DCB=*.SYSUT1 
Similar way, is it possible to create a VSAM to VSAM file, using refer back option? And this way, the new VSAM file shall get cataloged using the in VSAM file properties, of the Input VSAM file along with the data copied.

Regards,
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we 'refer back' VSAM files?

Post by Robert Sample »

A VSAM data set does not have a DCB -- VSAM uses ACB instead. Hence it is not possible to create a new VSAM data set in JCL by using a backward reference. IDCAMS is the way to define new VSAM data sets.
Vijay Ingle
New Member
Posts: 7
Joined: Mon Apr 28, 2014 4:12 pm

Re: Can we 'refer back' VSAM files?

Post by Vijay Ingle »

Thanks. I just read about ACB a bit. Is ACB a macro from operating system point of view?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we 'refer back' VSAM files?

Post by Robert Sample »

Just as DCB is a macro, so is ACB.
Vijay Ingle
New Member
Posts: 7
Joined: Mon Apr 28, 2014 4:12 pm

Re: Can we 'refer back' VSAM files?

Post by Vijay Ingle »

Thanks Robert. I never thought that they are called as macros....thanks.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”