View VSAM without file-aid?

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
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

View VSAM without file-aid?

Post by Jyoti Chibber »

Hi,
Is there any way to view the vsam dataset without the use of a tool like file aid or file manager? I mean if some shop does not have file aid or file manager, is it possible to see the contents of a vsam dataset?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: View VSAM without file-aid?

Post by nicc »

Yes - unload it to a sequential data set.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: View VSAM without file-aid?

Post by Robert Sample »

IDCAMS has a PRINT command.

[ Post made via iPhone ] Image
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

Re: View VSAM without file-aid?

Post by Jyoti Chibber »

Thanks but both of them I can not get the data in formatted form or can we get it by using some IDCAMS command?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: View VSAM without file-aid?

Post by Robert Sample »

Your original post did NOT mention that you wanted the data  formatted.  Formatting is a function of a program (whether written by you or File Aid or File Manager); using IDCAMS or other system utilities will NOT get you a formatted output.

If you want to see data in a VSAM data set with some format, you have two choices:
1.  Use File Aid, File Manager, or similar tool
2.  Write a program in the language of your choice to read the VSAM data records, format them, and display them.
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.”