Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > CGIUTL

Retrieve envvar into envdef

Scroll Prev Top Next More

xcall CGIUTL, CGIOP_GETENV, envvar, envdef, status

Opcode 5, CGIOP_GETENV, retrieves the contents of the environment variable envvar into the string variable envdef.

Parameters

envvar (String)  [in]

name of the environment variable to query, e.g. "CONTENT_LENGTH"

envdef  (String)  [out]

value of the specified environment variable, or null if envvar not defined

status  (Num)  [out]

status will be set to 0 for OK, or 1 if the variable had to be truncated to fit in envdef.