One serious limitation of the RPG language is that variable names cannot be longer than six characters. This limitation tends to prevent names from having much meaning, or at least clear meaning.
When you begin programming in any other language, you may be tempted to take advantage of the ten characters DDS provides for variable names. After all, if you are going to program in another language, why cut your wings? And if you need to use RPG after all, you may think that you can always rename fields within the RPG program.
Not always! Fields defined for output only cannot be renamed in an RPG program, since RPG uses the I-specs for this function. Obviously, output-only fields cannot be coded in I-specs.
Therefore, if you use RPG even eventually, it is much safer to cut your wings and restrict your variable names to six characters. After all, you can always use the ALIAS keyword in your DDS to make up names up to thirty-one characters long.
Ernie Malaga Midrange Computing
LATEST COMMENTS
MC Press Online