File Status Conversions

For emulation purposes, you can arrange to return file status codes other than ANSI'85 and ANSI'74. To do so:

  1. 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.

  2. 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
  3. When compiling, use the following compiler directives:
    • NOANS85
    • COBFSTATCONV
Note: A list of Microsoft COBOL V2 file status codes is given in the topic Microsoft COBOL V2 File Status Codes.