Because batch and CICS environments use different program linkages, you must create separate programs for batch and on-line or have different option blocks for batch and on-line. In either case, you must maintain separate LOAD/CORE-IMAGE libraries for each environment.
Since an authorization exit is executed frequently, consider performance implications carefully.
CA Ideal passes the exit program the information shown in the following illustration. (The sample programs contain 88-level names with appropriate values for fields containing CA Ideal's internal codes.)
01 ID-PARM-1.
05 ID-EXIT-TYPE PIC X.
05 ID-SYNC PIC X(03).
05 ID-RELEASE-LEVEL PIC X(04).
05 ID-USER-SHORT-ID PIC X(03).
05 ID-USER-NAME PIC X(32).
05 ID-TERMINAL-ID PIC X(04).
05 ID-TRANSACTION-ID PIC X(04).
05 ID-TP-MONITOR-CODE PIC X(01).
05 ID-OPERATING-SYSTEM-CODE PIC X(01).
05 ID-NETWORK-ID PIC X(8).
01 ID-PARM-2.
05 ATZ-RESULT PIC S9(04) COMP.
05 FUNC-ATZ-CODE PIC S9(04) COMP.
05 REQUIRED-SUBJECT-LEVEL PIC S9(04) COMP.
05 REQUIRED-OBJECT-LEVEL PIC S9(04) COMP.
05 USER-ATZ-DATA.
10 GLOBAL-ATZ.
15 FILLER PIC X(03).
15 IDL-ADM PIC X.
15 FILLER PIC X.
15 IDL-USR PIC X.
15 PRT-ADM PIC X.
15 DVW-ADM PIC X.
10 SUBJECT-ATZ.
15 SUBJECT-SYSTEM PIC X(3).
15 CONTROL-ATZ PIC X.
15 UPDATE-ATZ PIC X.
15 READ-ATZ PIC X.
15 RUN-PROD PIC X.
15 FILLER PIC X.
15 FILLER PIC X.
15 UPDATE-REPORT PIC X.
15 UPDATE-PANEL PIC X.
10 OBJECT-ATZ.
15 OBJECT-SYSTEM PIC X(3).
15 CONTROL-ATZ PIC X.
15 UPDATE-ATZ PIC X.
15 READ-ATZ PIC X.
15 RUN-PROD PIC X.
15 FILLER PIC X.
15 FILLER PIC X.
15 UPDATE-REPORT PIC X.
15 UPDATE-PANEL PIC X.
05 SUBJECT-ENTITY-DATA.
10 ENTITY-TYPE PIC X(03).
10 ENTITY-OCCUR-NAME PIC X(32).
10 ENTITY-OCCUR-VERSION PIC X(03).
10 ENTITY-OCCUR-STATUS PIC X(04).
05 OBJECT-ENTITY-DATA.
10 ENTITY-TYPE PIC X(03).
10 ENTITY-OCCUR-NAME PIC X(32).
10 ENTITY-OCCUR-VERSION PIC X(03).
10 ENTITY-OCCUR-STATUS PIC X(04).
05 REJECT-MESSAGE PIC X(70).
Specifies the type of exit that is invoked for this command. A 1 indicates that an authorization exit is invoked. Other values are reserved for future use.
The one- to three-character CA Ideal user short ID defined for the user who is executing the command.
The name of the CA Ideal user who is executing the command.
In CICS, the VTAM LU name, if the terminal is VTAM. The system ID and terminal ID of the Terminal Owning Region (TOR), if the terminal is MRO but not VTAM; low values in all other cases.
This field is passed to the exit program. The exit program can modify it. Possible values are:
Any other values returned to CA Ideal are ignored.
A numeric value representing a functional keyword. "Authorization Table" appendix contains all functions and their associated values.
A numeric value representing the authorization necessary in the current system. The possible values and their respective authorization levels follow:
A numeric value representing the authorization necessary in the object system. The possible values and their respective authorization levels are:
Specifies whether the user has each global privilege and authorization level in the current and object (if needed) systems.
Information about the subject entity that is passed to the exit for certain functions.
ENTITY-OCCUR-STATUS-Production (P) or Test (T) status of the entity. For panels, this is blank.
The data passed to exit programs by each function is shown in the following table.
|
Functional Keyword |
Subject Data |
Object Data |
|---|---|---|
|
ALTER-PROGRAM |
Program/Panel |
None |
|
CATALOG-DATABIEW |
Dataview |
None |
|
RUN |
Main Program |
None |
|
RUN-PROD |
Main Program |
None |
|
RUN-PROD-USING-PANEL |
Main Program |
None |
|
RUN-PROD-USING-PROGRAM |
Main Program |
Program |
Note: For functions RUN-PROD-USING-PANEL and RUN-PROD-USING-PROGRAM, the subject entity is the program specified on the RUN command. The authorization applies only if the main program is in Production status.
Information about the object entity passed to the exit program for certain functions. Entries are the same as for SUBJECT-ENTITY-DATA.
A 70-byte field where the user exit program can specify a message that CA Ideal displays in the message line if the function is denied or disabled.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|