CDS274

Return Environment Variable

Last Revised: 05/18/11

This routine can be used to return an environment variable.  For bbj, it can be used for both the server and client side when applicable.

Calling Format:

CALL "CDS274", ERR=XXXX, VBL$, VAL$ {, SET }

CDS274 Arguments
Argument Passed To/From Description
ERR=XXXX N/A Error branch taken if Variable Name specified does not exist
VBL$ To Environment Variable requested
VAL$ From Value of Environment Variable
SET To Optionally used to indicate server or client side
0, 4, 8, or not passedserver side
7client side
Examples
CALL "CDS274","SHELL",VAL$
?VAL$
/bin/bash

CALL "CDS274","TMPDIR",VAL$,0
?VAL$
/u/CDI/tmp
 

CALL "CDS274","COMPUTERNAME",VAL$,7

?VAL$

LEN