This command can be issued from an MVS console, a DSN session under TSO, a DB2I panel (DB2 COMMANDS), an IMS or CICS terminal, or a program using the instrumentation facility interface (IFI). You will need to learn about the IFI and how to make IFI calls from your program in order to issue this command.
In a data sharing environment, the output will include information about the data sharing group and each of its members, including the DB2 level. Level is another name for DB2 Version. So, for Version 6, the DB2 level would be listed as 610. This command returns a lot of information, so be sure to review the manual for the format of the output so your CICS program can interpret it.
In a non-data sharing environment, of course, the output will not include any data sharing information; the information will be for the DB2 subsystem to which you are attached.
Dig Deeper on IBM DB2 management
Related Q&A from Craig S. Mullins
To export data from a DB2 table to a flat file, you need to run an export specifying the proper file format. The export utility exports data from a ... Continue Reading
Craig Mullins recommends two specific resources for learning how to create and support Binary Large Objects (BLOB) in DB2. Continue Reading
Craig Mullins explains various definitions of a data mart and sheds some light on the complexity of its relation to a data warehouse. Continue Reading