# Putenv

Read Time: 1 minute(s)

Tags: program profiling

# Description

Export a variable to become an external environment variable so that child processes executed through subsequent PERFORM, EXECUTE or PROGRAM statements can see it.

putenv expression

where expression is the name and value of the external

An example of use may be as:

portno = 1001

where the variable portno is created as 1001 and then made into an external environment variable. This is used in this example by jBASE to decide the port number of any subsequent programs that are loaded.

Environment variables are only exported to child processes. Once jkeyauto terminates, all the environment variables are lost.

Back to jKeyAuto