suma m.s wrote:hi,
is it possible to view the contents of a vsam file just by opening it?
You have to OPEN a VSAM
dataset (not "file")before you can do anything (other than delete it!) with it. If you want to view the contents of a VSAM dataset you can use the PRINT command in IDCAMS.
The index of a VSAM dataset is stored in an index dataset. The index dataset is automatically allocated when you define a KSDS dataset. You can get the actual name of the index dataet by using the IDCAMS LISTCAT command. You can view the index as a separate entity by using the IDCAMS PRINT command, but it won't do you much good unless you really know VSAM internals.