Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

silEnv(variable_name)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Returns the variable as presented in the environment.

Returns the variable as presented in the environment. A special variable is set 'sil.home' that will point to the actual location of the SIL programs. You can configure this folder from the SIL Configuration page.

Valid variables:

  1. sil.home points to the folder keeping the SIL programs

  2. Any Java environment variable (such as 'java.home', 'os.arch', etc )

  3. Any environment variable, exported in the operating system (XX =aa ; export XX ) before the java process was started

  4. All vars from the 'sil.properties' file.

Note: the routine looks in the 'sil.home ' directory after a file called 'sil.properties' which must exist, otherwise the variables are not exported.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

variable_name

String

Yes

Env variable name.

Return Type

String

Example

Code Block
print("Your SIL programs are in " + silEnv("sil.home"));
Note

Every time the sil.home is changed, the contents of the old 'sil.properties' file will not be taken into account by this routine. You must copy the contents of the old file in the new location manually.

See Environment Variables for more details.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "system_routine" and space = currentSpace ( )
labelsarray_routines