Skip to Content

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

Estimated Reading Time: 1 Minutes
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.
How do I specify which file status codes I want to use?

Powered by PHPKB (Knowledge Base Software)