How do I specify which file status codes I want to use?


You can choose which file status codes you want to use by setting the iscobol.file.status runtime framework property

iscobol.file.status

This property specifies which file status codes to use. Set it to one of the following values:

com.iscobol.io.FileStatusDefault (for 2002 file status codes)
com.iscobol.io.FileStatus85
com.iscobol.io.FileStatus74
com.iscobol.io.FileStatusDG
com.iscobol.io.FileStatusVax
com.iscobol.io.FileStatusIBM
com.iscobol.io.FileStatusMF
com.iscobol.io.FileStatusMS

For example, for RM/COBOL-85 (ANSI 85) codes set iscobol.file.status=com.iscobol.io.FileStatus85

Note for Java programmers: This property specifies the name of the class that handles the file status code. To create a custom set of file status codes, the class must implement the "com.iscobol.io.FileStatus" interface.


Article ID: 93
Created: September 2, 2009
Last Updated: May 16, 2022
Author: Support KB Author

Online URL: https://support.veryant.com/phpkb/article.php?id=93