The AUPDPFKEY command
The AUPDPFKEY
command allows you to generate the primary keys in the ARCAD Repository automatically. You can generate keys for one file, for all application files, or for all files in a list.
Primary keys come from the files with these characteristics:
- A unique key on the physical file.
- A unique key on one of the non-joined logical files built over this physical file.
- A non-unique key specified on the physical file.
- A non-unique key specified on one of the non-joined logical files built over this physical file.
The logical files are analyzed in alphabetical order, and numbers are processed before letters (files named XXXXL1 and XXXXL2 processed before XXXXLA and XXXXLB).
The parameters available in the AUPDPFKEY
command are described below.
If a parameter has a default value, it is indicated in bold.
Options | Values |
---|---|
File(s) (FILE) | *ALL,*LST, *VERS |
Application ID (APPID) | *CURENV |
Version level (VERSLVL) | *LASTPRD, *CURENV |
List (LIST) | *CURENV, *LIBL, *CURLIB, Library name |
Identify the file(s) for which you want to calculate the primary keys.
Alpha value | Enter the name of a file to process. This file must belong to the application and version you have already specified. |
*ALL | The command will process all the files in the application. |
*LST | The files to process are in the list specified in List (LIST) parameter. |
*VERS | The command processes all the files that belong to the version. |
Identify the application to process.
*CURENV | The current environment's application. |
Alpha value | Enter an application code. |
Identify the version level to process.
*LASTPRD | The last version transferred to product |
*CURENV | Use the current version's identifier. |
Alpha value | Enter the specific version to process. |
Enter the name of an existing list.
*CURENV | The object is searched for in the current environment. Run the ADSPCURENV command to identify this environment. |
*LIBL | The object is searched for in the list of libraries. |
*CURLIB | The object is searched for in the current library for the job. If no *curlib was specified, QGPL is used by default. |
Library name | Enter the name of the library containing the object. |