Release-level and component-ID macro global variables
When ISTGLBAL, IFGRPL AM=VTAM®, or IFGACB AM=VTAM is assembled as part of an application program module, the &ISTGLRL macro global variable is declared and set with a character string that specifies the release level of the library containing ISTGLBAL. The &ISTGLCI macro global variable is declared and set with a character string that specifies the component identifier of VTAM. Later in the assembly of that module, these GBLC variables can be accessed by other macroinstructions and by open code.
The character string with which &ISTGLRL is set indicates the following:
| Byte no. | Contents | Code indication |
|---|---|---|
| 0 | 0 | Product (0=VTAM) |
| 1 | 6 | Version 6 |
| 2 | 1 | Release 1 |
| 3 | 2 | Modification Level 2 |
MACRO
WHATVTAM
GBLC &ISTGLRL
AIF ('&ISTGLRL' EQ '0612').LABEL1
VTAMLEVL DC C'THIS IS NOT V6R1.2 OF VTAM'
MEXIT
.LABEL1 ANOP
VTAMLEVL DC C'THIS IS V6R1.2 OF VTAM'
MENDIf the V6R1.2 level of either ISTGLBAL, IFGRPL, or IFGACB is coded, the WHATVTAM macroinstruction causes the generation of the first DC statement at assembly time. If you use an earlier release of ISTGLBAL, IFGRPL, or IFGACB, or if none of these three macros are issued in the assembly, the second DC statement is generated, indicating that the level of VTAM used is not VTAM V6R1.2.