How do I set iscobol.file.index.FileName with variable file name assignments?
Question:
The ASSIGN TO name in my SELECT statement is a variable. How can I set iscobol.file.index.FileName in the properties file when the file name is determined by the program at run time?
Answer:
The solution is to set the iscobol.file.index.FileName property programmatically. For example,
77 file-name pic x(100).
77 property-name pic x(100).
string "file.index.", file-name delimited by spaces
into property-name.
set environment property-name to "easydb".
Notice that when you set an isCOBOL property using the SET verb, you do not specify the "iscobol." prefix in the variable name.
Authored
by: Veryant Support
This question has been viewed 8300 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