Title: How do I set iscobol.file.index.FileName with variable file name assignments?

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?


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 on Wed, Sep 2nd, 2009 at 7:00 PM
This question has been viewed 7990 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=80

Powered by PHPKB Knowledge Base Software