The sysVar.systemType system variable identifies the target system in which the program is running. This variable is read-only.
The following table shows the valid values:
Value | Platform |
---|---|
AIX® | AIX |
DEBUG | You only see this if you are debugging and the EGL debug preference "Set systemType to DEBUG" is YES (the default). Otherwise sysVar.systemType is set according to the system field of the build descriptor you're debugging with. |
HPUX | HP-UX |
IMSBMP | IMS™ BMP |
IMSVS | IMS/VS |
ISERIESC | iSeries® COBOL |
ISERIESJ | iSeries Java™ |
JAVASCRIPT | The value in any Rich UI application |
LINUX | Linux (Intel hardware) |
SOLARIS | Solaris |
USS | z/OS® UNIX System Services |
VSEBATCH | VSE batch |
VSECICS | CICS® for VSE |
WIN | Windows 2000/NT/XP |
ZLINUX | 64–bit Linux on zSeries hardware. This is a target environment for Java generation only. |
ZOSBATCH | z/OS batch |
ZOSCICS | z/OS CICS |
if (sysVar.systemType IS AIX)
add myRecord;
end
if (sysVar.systemType IS AIX)
call myAddProgram myRecord;
end
if (sysVar.systemType is WIN)
call myAddProgram myRecord;
end