getProperty()

The sysLib.getProperty() system function retrieves the value of a Java™ runtime setting. If the specified setting is not found, the function calls the java.lang.System.getProperty() method to request the Java system property with the given name. If the setting is still not found, sysLib.getProperty() returns a null value.

Java runtime settings can be found in a number of different program properties files. These program property files have nothing to do with EGL program properties. For more information, refer to the EGL Generation Guide.

Syntax

  sysLib.getProperty(propertyName STRING in)
  returns (result STRING?)
propertyName
Input can be any variable or expression that is assignment compatible with the STRING type (see "Assignment compatibility in EGL"). This parameter specifies the name of a setting from a Java program properties file.
result
The result can be assigned to any variable that is assignment compatible with the STRING type. The function returns a null value if propertyName is not found.

Example

messageFileName = sysLib.getProperty("vgj.messages.file");

Compatibility

Table 1. Compatibility considerations for getProperty()
Platform Issue
COBOL generation The sysLib.getProperty() function is not supported.
JavaScript generation The sysLib.getProperty() function is not supported.

Feedback