How do I configure file locations with environment variables?

Question ID : 123
Created on 2010-03-10 at 11:29 AM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=123



In order to configure file locations with environment variables you need to add the following line to your isCOBOL properties file:

iscobol.file.env_naming=1

or on the java command line with -Discobol.file.env_naming=1

and then set properties for each filename. For example, if you have the following:

SELECT MY-FILE ASSIGN TO "MYVAR"

then you can add something like the following to your isCOBOL properties file:

iscobol.myvar=C:\Users\jsmith\Documents\myapp\data\myfile

or

iscobol.myvar=/Users/jsmith/Documents/myapp/data/myfile

Important: The property names must be all lowercase. If using a drive identifier such as "C:" you must use double backslashes as directory delimiters.

or you could set MYVAR in the environment

set MYVAR=C:UsersjsmithDocumentsmyappdatamyfile


Back to Original Question