Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

PUTENV

Description

PUTENV() function is used to set environment variables for the current process. It takes the general form: 

PUTENV(expression)

expression should evaluate to a string of the form:

EnvVarName=value

Where EnvVarName is the name of a valid environment variable and value is any string that makes sense tothe variable being set.

If the PUTENV() function succeeds it returns a boolean TRUE value, if it fails it will return a boolean FALSE value.

Note:

PUTENV only sets environment variables for the current process and processes spawned (say by EXECUTE) by this process. These variables are known as export only variables.

An example of use is as:

IF PUTENV("JBASICLOGNAME=":UserName) THEN
    CRT "Environment configured"
END


See also: GETENV

Go back to jBASE BASIC.

Was this article helpful?