Naming Conventions › Enforcing A Naming Convention
Enforcing A Naming Convention
The following techniques encourage the use of a naming convention:
- Define all database fields in a field reference file. Designate one person who is well versed in your standards to be responsible for issuing field names in a field reference file.
- Provide a standardized skeleton source as a basis to start coding.
- Use tools such as CA 2E to generate names automatically, according to rules.
- Consider providing an exit program for the programmer’s menu using the EXITPGM keyword on the OS/400 Display Programmer menu (DSPPGMMNU) command. This will check that the names given to source and object members satisfy your naming convention.
The following techniques ensure that appropriate names have been used; use the OS/400 Display library (DSPLIB) and Display object description (DSPOBJD) commands to obtain summary lists of object names.
Use the following CA 2E Toolkit documentation commands to check format and field names:
- Document program references (YDOCPGMREF) with LSTBYFMT(*YES).
- Document field references (YDOCFLDREF).
- Document file summary (YDOCF).
- Document program summary (YDOCPGM).