Code DINRDSNV to retrieve the data set type version information.
When you code DINRDSNV, # must be 1, LEN must be 1, and the PARM field will contain the DSNTYPE version number.
Example: To request the return of the data set type and version for the DD statement with name DD1, code:
KEY # LEN PARM
0001 0001 0003 C4 C4 C1
C012 0001 0001
C02C 0001 0001
Output: KEY # LEN PARM
0001 0001 0003 C4 C4 C1
C012 0001 0001 80
C02C 0001 0001 02
In this example, the data set type represents a library
(PDSE) version 2.