Question ID : 80
Created on 2009-09-02 at 1:22 PM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=80
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.