This chapter describes the management of APS facilities and libraries.
The APS Customization Facility lets developers modify and extend APS rules and create supplemental, reusable user rules called macros. You can regulate the use of of the APS Customization Facility using the Customization Facility Control System. This control system lets you enable or disable customization control and create and maintain a rule list.
The default setting for customization control is enable. This means the control system is on and developers cannot define or access user macros. However, APS supplied macros remain usable. If you disable customization control, developers can define user macros. A third alternative lets you turn the control system off and create a rule list. For more information, see Working with Rule List below.
To enable or disable customization control, do the following:
| Field |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
Command |
|
||||||
|
Password |
Type the password included with your APS software. |
||||||
|
New Password |
If you entered change in the Command field, type a new password. |
A rule list is a list of user macros developers can access. Rule list are applicable to all projects and groups. You can add to and delete from this list as necessary. To create and maintain a rule list, do the following:
//INPUT proj.grp.USERMACS MACLIB1 MACLIB2 $MACRO1 $MACRO2
These statements place every macro defined in MACLIB1and MACLIB2 as well as macros $MACRO1 and $MACRO2 in the rule list.
| Field |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
Command |
|
||||||
|
Password |
Type your password. |
||||||
|
Control File |
Specify the fully qualified name of the control file. |
||||||
|
Output File |
Specify the fully qualified rule list filename. This file must be named MACROLST and reside in the APS CNTL library. For example, SYS1.APS5000.CNTL.MACROLST |
||||||
|

| Field Name |
Value |
|---|---|
|
Create DDIFILE |
yes or no. |
|
Target DDI Prefix |
Accept default values or override. |
|
Number of Records |
Appropriate number for new project and group. Calculate the number of records as follows: Eight records per DBD, three records per PSB, and for VSAM subschemas, two records per DDISRC member. |
|
Number of Secondary |
Default: blank (0); you can override. |
|
VSAM Volume |
Your VSAM volume ID. |
|
Replace DDIFILE |
yes or no. |
The DDI file is a VSAM KSDS file defined with keys (38,0). You can unlock or initialize the DDIFILE, back it up to a sequential file or restore it from a backup using the DDIFILE Utilities screen. Before using the DDIFILE utilities screen, you must complete specific import tasks. All DDIFILE utilities require the use of the DDIFILE prefix. Except for unlock, all DDIFILE utilities run standard access method services (AMS) IDCAMS.
APS allocates a DDI file during installation. You can use the initialize DDI function to allocate additional DDI files. To do so, perform the following:
| Field |
Description |
|---|---|
|
Number of Records |
We recommend the following: 200 records based on 8 records per DBD |
|
Number of Secondary |
Specify any secondary records. |
|
VSAM Volume Id |
Specify the volume where the ddifile is located. |
|
Replace any Existing DDIFILE |
yes |
You can delete DBDs, PSBs, subschemas, and VSAM file descriptions from an existing DDIFILE. To do so, modify the JCL for the DDIFILE Report, DB01 as follows:
| Column |
Description |
|---|---|
|
2 |
Entity name |
|
33 |
Entity types: D=DBD |
Application edits are a centrally-stored collection of user-defined field edit routines. Use the Application Edit List Facility to maintain application edits. This facility allows you to:
You can maintain multiple lists to group similar application edits. For example, you can group social security number, employee number and department number edits under the list name PERSONAL, while part number and supplier number edits can be grouped under the list name INVENTORY. For specific information on how to create application edits, see the APS User's Guide chapter Paint Character Screens.
To perform any of the tasks listed above, do the following:

The APS SQL Subschema Maintenance Utilities allow you to:
You can analyze the impact of changes prior to updating the DB2 system catalog using the APS DB2 Browse Facility. This facility allows you to browse object definitions in the DB2 catalog or the APS common data area or both combined. You can also delete common data area objects. The APS common data area is a staging area that is separate from the IBM DB2 system. APS conducts all development and maintenance in the common data area.
Every object has one or more browse screens. Browse screens for each object type have the same format and functionality. The browse screen fields are described below.
| Field |
Description |
|---|---|
|
Name |
The name of the object. |
|
Creator |
The TSO ID of the object creator. |
|
VV |
The system where the object resides. Values are: |
|
Created |
For DBP objects, this field identifies the year, month, and day object was created. |
|
Last Modified |
For DBP objects, this field identifies the year, month, day, hour, minute the object was last modified. |
|
Gendate |
For DBP objects, this field identifies the year, month, and day when last generated into the DB2 system catalog. |
|
ID |
For DBP objects, this field identifies the TSO ID of the person who last modified the object. |
To browse objects, perform the following steps:
| Field |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
Prefix |
Optional. Enter a full or partial TSO ID to display objects created under a particular TSO ID or group of TSO IDs sharing a prefix. |
||||||
|
Command |
Enter a command. Valid values are:
|
||||||
|
Mode |
Specify a display mode. Valid values are:
|
||||||
|
Scroll |
|
You use the DDL extract facility to display the generated object type where you can extract DDL code from specific object types. You can also specify whether you want to browse the DDL source code and recover previous DDL source versions from an imported object.
To extract DDL code, perform the following steps:
You can generate reports that are useful for determining the effect to the common data area and DB2 system of dropping or modifying an object. You can generate reports on a storage group, database, table space/database, or table or view. Most reports list objects in groups, illustrating object relationships. Generate reports as follows:
Use the Reports facility to generate the following reports:
Object Definition Report. You can generate this report for each object type. This report has one or more of the following parts:
All object definition reports are of the same format and are functionally identical. One example serves to describe all object definition screens as follows:
|
Field |
Description |
||||
|---|---|---|---|---|---|
|
Command |
|
||||
|
Storage Group Name |
In this case, type the storage group name. Depends on the object type you want to report on. Type all to specify an object detail report on all. |
||||
|
History Only |
|
||||
|
Text |
|
||||
|
Job Class |
Type your job class. |
Dependency Report lists objects associated with a specified object in the common data area. APS generates this report when you specify DBP in the Mode field on the Drop DB2/DBP Reports screen. Screen fields are described below.
|
Field |
Descriptio |
||||
|---|---|---|---|---|---|
|
Command |
|
||||
|
Mode |
|
||||
|
Job Class |
Type your job class. |
||||
|
Storage Group Name |
Type the storage group name. |
||||
|
Database Name |
Type the database name. |
||||
|
Table Space Name |
Type both a table space name and a database name. |
||||
|
Table Name and Table Creator |
Type a table name and type the table creator's TSO ID. |
||||
|
View Name and View Creator |
Valid only when generating a DB2 Drop Analysis report. |
DB2 Drop Analysis lists DB2 objects associated with a specified DB2 object. Note: Another report is available, not from the Reports facility, but from other screens. This report, the DBP Common Data Area Relationship report, is an online listing of all common data area objects related to or used by a specified object or subschema. For more information, see See Generating DBP Common Data Area Relationship Reports.
The DBP Common Data Area Relationship report is an online list of all objects in the common data area related to or used by a specified object or subschema. Related objects are objects dependent upon or containing the specified object both above and below the hierarchy. Related objects are listed in groups illustrating dependency. Objects used by other objects, for example, tables used by a view, are listed in the order used. You can generate a DBP Common Data Area Relationship report for storage groups, databases, table space, subschemas, tables, or indexes.
Object definitions: To generate a DBP Common Data Area Relationship report, enter the relate command in the Command field of any Browse screen. The syntax for this command is:
-r[elate] -r[elate] objecttype=objectname -r[elate] objecttype=objectname USE[S] objecttype r[elate] objecttype USED [BY] objecttype=objectname
Copyright © 2002 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.