CA Repository Webstation Option uses stewards to approve the pending request for all data modification actions such as update, insert, or delete. A steward is a workstation associated with a privilege assigned to a list of users having approval rights. CA Repository Webstation Option uses the workstation privilege object to determine the users that are authorized to approve change requests for a steward.
An approver can view the pending change requests for data modification in the form of a table by selecting Approval tab on the home page. The entries in the approval view are obtained from the approval table that stores each pending change request as a record. The approval page offers three different views to display the status of the change requests, listed as follows:
The approver can see all valid pending requests raised by any user. However, when the request is approved it is removed from the list of valid requests.
The approver can see all invalid pending requests and rejected requests raised by any user. There is an option to delete the invalid requests permanently.
This view lists all change requests (valid or invalid) raised by a user.
As an approver, you can use the following options to approve or reject the requests.
You can use this option to see the details of the pending requests before approving or rejecting the requests.
Use this option to approve the change request.
Use this option to reject the change requests.
|
This section contains the following topics: Query to View Change Requests for an Approver |
CA Repository Webstation Option uses the following query to obtain a list of all objects that have pending change requests for an approver:
SELECT DISTINCT (A.ENT_ID, E.ENT_NAME, UP.NAME AS STEWARD, NAME, STATUS, VERSION)
COUNT(*)
FROM DBX_APPROVAL A, DBX_WORKSTN_PRIV WP, DBX_PRIV_USER UP ,
DBX_WORKSTATION_D W, DBX_WKSN_XREF WX, DBX_ENT_TYPE_DESC E
WHERE UP.TSO_LOGON = :USERID THAT IS LOGGED IN AND
UP.PRIV_NAME = WP.PRIV_NAME, AND
UP.WKSN_NAME = W.NAME AND
W.ENT_ID = WX.WKSN_ID AND
WX.ENT_ID = A.ENT_ID AND A.ENT_TYPE = E.ENT_TYPE
The following query displays a list of all pending change requests for an object:
SELECT ENT_ROWID, ENT_ID, ENT_TYPE, NAME, STATUS, VERSION,
REQUEST_TIMESTAMP, REQUEST_USER, DESCRIPTION
FROM DBX_APPROVAL
WHERE NAME = :SELECTED NAME AND STATUS = :SELECTED STATUS AND
VERSION = :SELECTED VERSION
ORDER BY REQUEST TIMESTAMP, REQUEST_USER
To implement approval process, the DB2 Default panel is updated to include following changes:
The valid values for Approvals Required are Y or N, and it is stored in the dbx_system table.
The following screen displays a sample DB2 default panel:
------------------------- CA Repository for z/OS -------------
----------------------------- DB2 Defaults ---------------------
COMMAND ===>
Default DB2 Subsystem Name ===> D81A
Default Storage Group ===> DATA720
Control Table Storage Group ===> CNTL720
Default Buffer Pool ===> BP1
Default Index Buffer Pool ===> BP2
Repository Owner ===> ARZR720
Catalog Owner ===> SYSIBM
WLM environment Name ===> D81AWLM
AR/zOS Plan name ===> ARZR720
AR/zOS Package Collection ===> ARZR720_PACK
Implement Audit/History Trail ===> N (Y or N)
Defer DB2 Data Set Creation ===> Y (Y or N)
Require Approval Process ===> N (Y or N)
Reject Batch for Pending Approvals ===> N (Y or N)
The following screen allows you to enter CA Repository Webstation Option database Names:
Control Database ===> ARZ720CN Database 2 ===> ARZ7202
Database 3 ===> ARZ7203 Database 4 ===> ARZ7201
Database 5 ===> ARZ7204 Database 6 ===> ARZ7205
Database 7 ===> ARZ7206 Database 8 ===> ARZ7207
Database 9 ===> ARZ7208 Database 10 ===> ARZ7209
You can define DB2 Install parameters as follows:
DB2 Version ===> 8 (7, 8)
Decimal Point Indicator ===> ; (. OR ,)
String Delimiter ===> S (S-Single Quote,D-Double Quotes)
CREATE DATABASE APPROV;
CREATE TABLESPACE APPRTS IN APPROV;
COMMIT;
CREATE TABLE DBX_APPROVAL
( ENT_ROWID ROWID NOT NULL GENERATED ALWAYS,
ENT_ID INTEGER,
ENT_TYPE SMALLINT,
NAME VARCHAR(245),
STATUS CHAR(8),
VERSION SMALLINT,
REQUEST_TIMESTAMP TIMESTAMP,
REQUEST_USER CHAR(8),
DESCRIPTION VARCHAR(512),
REQUEST_DOC CLOB(1073K),
CREATE_BY CHAR(8),
MOD_BY CHAR(8),
CREATE_DATE DATE,
CREATE_TIME TIME,
MOD_DATE DATE,
MOD_TIME TIME)
IN APPROV.APPRTS
;
CREATE LOB TABLESPACE APCLOB
IN APPROV
LOG NO
;
CREATE AUXILIARY TABLE APPROVAL_CLOB
IN APPROV.APCLOB
STORES DBX_APPROVAL
COLUMN REQUEST_DOC
CREATE UNIQUE INDEX XAPPROVAL
ON APPROVAL_CLOB
| Copyright © 2009 CA. All rights reserved. | Email CA about this topic |