The RPG Style Guide at http://www.as400network.com/article.cfm?ID=2461 recommends using built-in functions instead of arrays to handle strings. The varying-length character type (available in V4R2 and above) can also simplify string-handling code as well as make it more efficient. I recommend using varying-length fields as CONST or VALUE parameters to every string-handling subprocedure as well as for string temporaries. (I recently worked with an RPG programmer, and we reduced the number of ...

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on iPro Developer for free.

Already registered? Log in here.