Authorization failures

If a terminal user is not authorized to access the resource specified on a CICS command, CICS returns the NOTAUTH condition to the application program.

CICS indicates this authorization failure by setting the EIBRESP field of the EXEC interface block (DFHEIBLK) to a value of 70 (and X'46' in byte 0 of the EIBRCODE field). Design your CICS applications to handle security violations by passing control to an appropriate routine. They can do this in either of the following ways:
  • Test the EIBRESP condition by adding the RESP option to each command that may receive a NOTAUTH condition. For example (in COBOL):
    EXEC CICS FILE('FILEA')
       INTO(REC) RIDFLD(KEY)
            RESP(COMMAND-RESPONSE)
    END-EXEC.
     
     
    EVALUATE COMMAND-RESPONSE
       WHEN DFHRESP(NORMAL)
            CONTINUE
       WHEN DFHRESP(NOTAUTH)
        PERFORM SECURITY-ERROR
    END-EVALUATE.
  • Code an EXEC CICS HANDLE CONDITION NOTAUTH(label) command, where label is the name of the security violation routine.

If an application does not cater for security violations, CICS abends the transaction with an AEY7 abend code.



dfht5b0054.html | Timestamp icon Last updated: Sunday, 4 June 2017