VSAM data set information can be retrieved using AMS commands (Access Method Services). AMS uses IDCAMS to handle a variety of functions such as creating, printing datasets, or listing catalog information, etc.,
Structure of AMS command:
Commands position - 2 to 72
Separators - Blank, Comma
Comments /*---*/
Continuation Hypen(-), plus sign(+)
Terminator Semicolon(;)
These are the commonly used VSAM commands which are used to perform certain operations on VSAM datasets.
Define
Repro
Print
Delete
Alter
Listcat
Examine
Verify
Export/Import