RPG III field names may have a maximum of six characters.
File names in RPG III Calculation specifications may have a maximum of eight characters. This is also true in File specifications, although a database override can be used to associate this eight-character name with an actual file possessing a longer name.
A program call statement is executed more efficiently in RPG III if the name of the program being called can be coded as a literal. This requires that program names are restricted to eight characters maximum.
Within an RPG III program, field names are global: they cannot be local to a particular subroutine, nor may they be qualified by the name of the file or format with which they are associated. This means they need to be unique within the program. In order to avoid having to rename fields, and also to be able to relate fields to formats, you may want to provide an indication of the format in the field name.
|
Copyright © 2014 CA.
All rights reserved.
|
|