Last month, in "A CL-Based Implementation of RPG Built-in %Check," we built the command Check Characters (CHKCHR). The CHKCHR command returns the position of the first character within a CL variable that is not found within a list of valid values. Based on reader requests, this month we'll look at how to implement a Scan Characters (SCNCHR) command. The SCNCHR command will return the position of the first character within a CL variable that is found in a list of valid values.
Development environments on the IBM Power Systems (AS/400, System i, iSeries, IBM i) can be a challenge to learn, control, and document. Changes in the source code and changes in personnel are just a couple of the hurdles you must clear in order to gain and retain control of programs and files.