A naming convention for iSeries should do the following:
There are three separate interfaces in the OS/400 architecture with which you should be consistent:
The CL command language interface in particular suggests certain naming practices; for example, use OS/400 mnemonics such as DSP for display wherever possible.
Follow an object-action system. Name objects that perform a function (commands and programs) according to the action they perform upon an object or entity; use the form ‘verb + object’. For objects that have actions performed upon them (as files, data areas, message queues), base their names on the significant entity that they represent; use the form ‘object’ or ‘adjective + object’. For example, Display Active Jobs (DSPACTJOB), Date format system value (QDATFMT), Batch subsystem (QBATCH).
Allow the names generated by the convention to lend themselves to generic manipulation. This means adopting names that give useful generic names for manipulation by CL commands. Also, ensure that names are tractable by the scan functions of source editor utilities such as SEU and object manipulation tools such as IBM’s Programming Development Manager (PDM). A generic name, indicated by an asterisk at the last position, encompasses the names of all entities, which begin with the same character string. For example, AB* implies all entities whose names begin with the letters AB.
Because of the limitations of the CL generic name, it is almost impossible to come up with a naming convention that completely satisfies this requirement. If you include indications of both an object’s type and its function in a name, one must be given precedence. Since sometimes you may want to manipulate objects by type, yet at other times by functional group, there inevitably can be a conflict. The floating generic name (*XXX*) capabilities of PDM can be used for generic manipulation on lower order parts of the name, provided you have adopted a convention that ensures related objects have at least some related component to their names.
The following example gives two different schemes for naming programs and files.
|
OS/400 Object Types |
||||
|
Group |
Object Type |
Description |
Number of Entities |
Seen by end user |
|
CFG |
*ALRTBL- |
Alert table |
Few |
No |
|
SEC |
*AUTL- |
Authorization list |
Several |
Yes |
|
CFG |
*CFGL |
|
|
|
|
Copyright © 2014 CA.
All rights reserved.
|
|