Ask the Expert

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: