Variable-length fields in RPG IV
Is there a way to utilize variable-length fields in RPG IV? We do not use free form yet.
You don't need free-format RPG to use variable-length fields. Full support is integrated into the normal language.
Actually, I don't like free-format RPG, which just seems to me to promote messy code. But that's just me!
You can read about variable-length fields and their advantages and cautions here.
Be sure to read the reference carefully, because you can get unexpected results with variable-length fields, especially if you use MOVE/MOVEL with them.
This was first published in November 2005