sysVar.systemType

The system variable sysVar.systemType identifies the target system in which the program is running. If the generated output is a Java wrapper, sysVar.systemType is not available. Otherwise, the valid values are as follows:

aix

For AIX

debug

For the EGL Debugger

iseriesj

For iSeries

linux

For Linux (on Intel-based hardware)

win

For Windows 2000/NT/XP

You can use sysVar.systemType in these ways:

The characteristics of sysVar.systemType are as follows:

Primitive type

CHAR

Data length

8 (padded with blanks)

Is value always restored after a converse?

Yes

Use sysVar.systemType instead of sysLib.getVAGSysType.

Definition considerations

The value of sysVar.systemType does not affect what code is validated at generation time. For example, the following add statement is validated even if you are generating for Windows:

  if (sysVar.systemType IS AIX)
    add myRecord;
  end

To avoid validating code that will never run in the target system, take either of the following actions:

Example

  if (sysVar.systemType is WIN)
    call myAddProgram myRecord;
  end

Related reference
eliminateSystemDependentCode
sysLib.getVAGSysType