The vgLib.getVAGSysType() system function identifies the target system in which the program is running. The function is supported only if you are running in VisualAge® Generator compatibility mode. Use sysVar.systemType instead.
If the generated output is a Java™ wrapper, vgLib.getVAGSysType() is not available. Otherwise, the function returns the character value that was previously returned by the VisualAge Generator EZESYS special function word. If the current system was not supported by VisualAge Generator, the function returns the uppercase, string equivalent of the code stored in sysVar.systemType.
// valid ONLY for sysVar.systemType
if (sysVar.systemType is AIX)
call myProgram;
end
vgLib.getVAGSysType( )
returns (result CHAR(8))
| Value in sysVar.systemType | Value returned by vgLib.getVAGSysType |
|---|---|
| AIX® | "AIX" |
| DEBUG | "ITF" [Integrated Test Facility] |
| HPUX | "HP" |
| IMSBMP | "IMSBMP" |
| IMSVS | "IMSVS" |
| ISERIESC | "OS400" |
| ISERIESJ | "OS400" |
| LINUX | "LINUX" |
| SOLARIS | "SOLARIS" |
| USS | "OS390" |
| VSEBATCH | "VSEBATCH" |
| VSECICS | "VSECICS" |
| WIN | "WINNT" |
| ZLINUX | "ZLINUX" |
| ZOSBATCH | "MVSBATCH" |
| ZOSCICS | "MVSCICS" |
mySystem CHAR(8);
mySystem = vgLib.getVAGSysType();
if (mySystem == "AIX")
add myRecord;
end
mySystem CHAR(8);
mySystem = vgLib.getVAGSysType();
if (mySystem == "AIX")
call myAddProgram myRecord;
end