MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference and Help > Reference File Categories > FILE STATUS CODES

Function Select

RF015S01 - Function Select

WILLIAMS                       COMMON FEATURES                         8/01/94

 DSP01                    REFERENCE FILE CATEGORY 015           FUNCTION SELECT

                                                                                

                                                                               

                   Category Name           FILE STATUS CODES                   

                                                                               

                                                                               

                                        BLANK KEY                              

                   Category Key                                                 

                                                                               

                                                                               

                                                                               

                   Request Code         4                                      

                                                                               

                                        1 - Add                                

                                        2 - Change                             

                                        3 - Delete                             

                                        4 - Inquire                            

                                                                               

                                                                               

                                                                               

 F2=Command          F3=Exit             F7=End Category     F8=Display List   

 F9=Inquiry                                                                    

                                                                               

 

 

The File Status Codes category contains the IBM codes for error/exceptions encountered on file I/O operations.  Each file status code requires a unique value.  This category may be maintained, but using values other than those specified may cause unpredictable results.

This category has a blank key to allow only one record.

Detail

RF015S02 - Detail

WILLIAMS                       COMMON FEATURES                         8/01/94

 DSP01                    REFERENCE FILE CATEGORY 015                   INQUIRE

                                                                                

                   Category Name           FILE STATUS CODES                   

                                                                               

                                        BLANK KEY                              

                   Category Key                                                

                                                                               

                                                                                

            FILE STATUS CODES:   NO ERROR    END OF FILE     NO REC FND        

       Data                       00000         00011          00012           

                                  NNNNN         NNNNN          NNNNN           

                                                                               

            DUP ADD    DUP OPEN     EXPLICIT OPEN     UNABLE TO ALLOC          

       Data  01021      01215           01217              01218               

             NNNNN      NNNNN           NNNNN              NNNNN               

                                                                               

            UPD NO READ     MISC I/O                                           

       Data    01221         01299                                             

               NNNNN         NNNNN                                             

                                                                               

 F2=Command          F3=Exit             F9=Inquiry          F10=Function Select

                                                                               

                                                                               

 

 

This is used to define file I/O error/exception codes to the system.

NO ERROR

Required.  I/O operation completed without error.  The valid value is 00000.

END OF FILE

Required.  End of file encountered on an input operation.  The valid value is 00011.

NO RECORD FOUND

Required.  No record found on a CHAIN operation.  Valid value is 00012.

DUPLICATE ADD

Required.  Tried to write a record that already exists.  Either the record has a duplicate key and the file is keyed unique, or tried to write a duplicate relative record number to a subfile.  Valid value is 01021.

DUPLICATE OPEN

Required.  Tried to open file already opened.  Valid value is 01215.

EXPLICIT OPEN

Required.  Error on an explicit OPEN or CLOSE operation.  Valid value is 01217.

UNABLE TO ALLOCATE

Required.  Unable to allocate the record sought.  Valid value is 01218.

UPDATE WITHOUT READ

Required.  Update operation attempted without a prior read.  Valid value is 01221.

MISC I/O

Required.  Other I/O error detected.  Valid value is 01299.