Page 1 of 1

View VSAM without file-aid?

Posted: Thu Jul 21, 2016 2:15 pm
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?

Re: View VSAM without file-aid?

Posted: Thu Jul 21, 2016 3:05 pm
by nicc
Yes - unload it to a sequential data set.

Re: View VSAM without file-aid?

Posted: Thu Jul 21, 2016 4:07 pm
by Robert Sample
IDCAMS has a PRINT command.

[ Post made via iPhone ] Image

Re: View VSAM without file-aid?

Posted: Fri Jul 22, 2016 4:56 pm
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?

Re: View VSAM without file-aid?

Posted: Fri Jul 22, 2016 6:15 pm
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.