For emulation purposes, you can arrange to return file status codes other than ANSI'85 and ANSI'74. To do so:
- Use the CONVERTSTATUS File Handler configuration option to specify the name of a program that is called to map returned status values. The program name depends upon the type of compiler:
Compiler
|
CONVERTSTATUS=
|
RM/COBOL
|
rmstat
|
IBM Mainframe COBOL
|
hoststat
|
Microsoft COBOL V2
|
msstat
|
You can add the CONVERTSTATUS parameter to the File Handler configuration file
extfh.cfg. For more information, see the topic
File Handler Configuration.
- When compiling, use the following compiler directives:
Note: A list of Microsoft COBOL V2 file status codes is given in the topic
Microsoft COBOL V2 File Status Codes.