Q
Problem solve Get help with specific problems with your technologies, process and projects.

Variable-length fields in RPG IV

One Search400.com user writes, "Is there a way to utilize variable-length fields in RPG IV? We do not use free form yet." Application development expert John Blenkinsop responds.

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 last published in November 2005

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close