Yes, it is possible. Because the isCOBOL runtime framework uses a dynamic file handler and the COBFILEIO generated routines rely on that file handler directly.
The generation and compilation of the COBFILEIO OOP COBOL and Java Exception classes is the same as if you were going to access JISAM files.
It is at runtime that you need to set the following property to access the C-tree file system instead of JISAM:
iscobol.file.index=ctreejA good way to test this is by using the sample provided with the isCOBOL SDK. It can be found in the sampleis-javajava-uses-cobfileio sub-folder under the isCOBOL SDK installation folder.
Create an iscobol.properties in that folder and include the following lines in it:
iscobol.file.index=ctreej iscobol.file.prefix=[full path to the test c-tree files folder](make sure that folder for the c-tree files exist in advance)
Then use the test-cobfileio.bat under Windows or test-cobfileio.sh under Linux to generate and compile the COBFILEIO classes and run the java test class.
The following screenshot shows how that test can be run. (It has the Javadoc generation commented out to make it simpler.)
Article ID: 326
Created: April 8, 2022
Last Updated: August 5, 2022
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=326