Skip to main content

[archive] System Enviornment Variable in config file

  • November 4, 2008
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 03 November 2008]

Is there a way in the configuration file for ACUThin to get an enviornment variable.

Example of this is:

wdir=/u/test

Where wdir is the working parent directory for all of my files including my object directory. In the config file I need to set items such as:

DATA=$wdir/DATA which would be /u/test/DATA
OBJ=$wdir/object
TMP=$wdir/tmp

and so on.
It seems that the enviornment variable is not available when the config file is read, or I have the format wrong. We are running thin client on a Linux system and the clients on Windows PC's.

Thanks for any help,

1 reply

[Migrated content. Thread originally posted on 03 November 2008]

Is there a way in the configuration file for ACUThin to get an enviornment variable.

Example of this is:

wdir=/u/test

Where wdir is the working parent directory for all of my files including my object directory. In the config file I need to set items such as:

DATA=$wdir/DATA which would be /u/test/DATA
OBJ=$wdir/object
TMP=$wdir/tmp

and so on.
It seems that the enviornment variable is not available when the config file is read, or I have the format wrong. We are running thin client on a Linux system and the clients on Windows PC's.

Thanks for any help,
You are correct, in that you do have the wrong format, the configuration file will not be able to have a $ sign in it (like a shell script) so that $PWD or $wdir provides additional pathing information to the runtime. You will either need to be specific in the config file or use accept from environment inyour COBOL program to get the fully qualified pathing