Title: Can the file system (iscobol.file.index) be set programmatically? |
Question:
Can I set the iscobol.file.index or iscobol.file.index.FileName variables inside my COBOL program?
Answer:
You can set both "file.index" and "file.index. Setting the file to a specific class overrides external settings in your enviornment.
In versions 2022R2 and later, you can also set or change the CLASS clause for each file "on the fly" by using a hook program. iscobol.file.index.open_hook=[hook_program_name]There is a sample of this in the installed samples folder, under extend-and-customize/file-open-hook. The hook program in the example checks the location of the file and the running environment. If the file is in the temp folder, the file format is set to Jisam instead of EasyDB. You can write whatever logic you need to determine the file format of a file just before it is opened.
|
Authored by: Veryant Support on Wed, Sep 2nd, 2009 at 7:00 PM This question has been viewed 8939 times so far. |
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=90 |
Powered by PHPKB Knowledge Base Software