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.
Previous topicNext topic

Topic Author
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

View VSAM without file-aid?

Post by Jyoti Chibber » Thu Jul 21, 2016 2:15 pm

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: 597
Joined: Wed Apr 23, 2014 8:45 pm

Re: View VSAM without file-aid?

Post by nicc » Thu Jul 21, 2016 3:05 pm

Yes - unload it to a sequential data set.


Regards
Nic

User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1379
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: View VSAM without file-aid?

Post by Robert Sample » Thu Jul 21, 2016 4:07 pm

IDCAMS has a PRINT command.

[ Post made via iPhone ] Image




Topic Author
Jyoti Chibber
Registered Member
Posts: 16
Joined: Wed Aug 20, 2014 5:40 pm

Re: View VSAM without file-aid?

Post by Jyoti Chibber » Fri Jul 22, 2016 4:56 pm

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: 1379
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: View VSAM without file-aid?

Post by Robert Sample » Fri Jul 22, 2016 6:15 pm

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.



Previous topicNext topic

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