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?



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.

Was this article helpful?