Previous Topic: Automatic Naming of Generated Code

Next Topic: Automatic Naming: Last-Used Mnemonics

Name Allocation Programs

The following table provides the name allocation programs.

CA 2E Object Object

CL Program to Name

Model Entity

Access Paths

YALCPHYR1C

Physical file names

 

YALCLGLR1C

Logical file names

 

YALCQPFR1C

Query physical file names

 

YALCIDXR1C

SQL index names

 

YALCVIWR1C

SQL view names

Access Path Formats

YALCFMTR1C

PF and LF format names

Field Names

YALCFLDR1C

Field names

Functions

YALCFUNR1C

Program names

 

YALCMSGR1C

Message names

 

YALCDSPR1C

Display files

 

YALCPRTR1C

Printer files

 

YALCHLPR1C

Help text member and help panel group names

 

YALCSCMR1C

Screen message identifier

User Interface Manager (UIM) Help Modules

YALCUIMR1C

UIM help module names

Most of the name allocation programs make use of an RPG program, YALCVNMR1R, to retrieve the last used mnemonic for the object type from a file in the model, YALCVNMRFP. The source for the RPG program is also shipped.

CA 2E ships source code for a number of CL programs that assign names. The source resides in the library Y2SYSRC. These programs provide an Application Program Interface (API) to naming routines. You can modify these programs to achieve any naming convention that fits the constraints of the implementation language.CA 2E checks for duplication and calls the naming programs until they either return a unique name or signal failure by returning blanks.