How do I configure file locations with environment variables?
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:\Users\jsmith\Documents\myapp\data\myfile
Authored
by: Veryant Support
This question has been viewed 9413 times so far.
Click
Here to View all the questions in isCOBOL General
category.
File Attachments
There are no attachment file(s) related to this question.
User Comments
There are no user comments for this question. Be the first to post a comment. Click Here