Q

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 first 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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close