Calling Librarian FAIR routines abend with S0C1
search cancel

Calling Librarian FAIR routines abend with S0C1

book

Article ID: 412472

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

After recompiling user programs that call Librarian FAIR routines FAIROPN, FAIRMOD, FAIRCLS and FAIRREC abends with S0C1. PSW address is in low core x '00000002'.

SYSTEM COMPLETION CODE=0C1  REASON CODE=00000001
PSW AT TIME OF ERROR  078D1000   00000002  ILC 2  INTC 01

Cause

None of the entry points for the FAIR routines were resolved in the link edit step:

         E8 user_program                   E8 V-CON | FAIRMOD          $UNRESOLVED
        134 user_program                  134 V-CON | FAIRREC          $UNRESOLVED
         370 user_program                  370 V-CON | FAIROPN          $UNRESOLVED
        3A4 user_program                  3A4 V-CON | FAIRCLS          $UNRESOLVED    

Resolution

Ensure the SYSLIB in the link edit step points to Librarian loadlib that contains the FAIR routines.
The problem in this case is the link options NCAL is specified.
Relink the programs specifying the CALL option in the link edit step so the external references get resolved.

Additional Information