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() function is used to set environment variables for the current process. It takes the general form: 


expression should evaluate to a string of the form:


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.


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:

    CRT "Environment configured"

See also: GETENV

Go back to jBASE BASIC.

Was this article helpful?