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= |
Ryan MacFarland 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.
- If creating a linked application, link an object into the application. The object that you link depends upon the compiler:
Compiler
|
Object
|
Ryan MacFarland COBOL |
rmstat.obj |
IBM Mainframe COBOL |
hoststat.obj |
Microsoft COBOL V2 |
msstat.obj |
- 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.