A Bevy of BIFs: %SCAN and %CHECK
February 25, 2009 Jon Paris
From recent questions on Internet lists, and from one-on-one discussions with RPG programmers, it seems that many are confused about the usage and operation of a number of built-in functions (BIFs). In particular the BIFs %XLATE, %REPLACE, %SCAN, and %CHECK seem to cause a lot of confusion. In this tip, I focus on %CHECK and %SCAN. I’ll look at the other misunderstood pair, XLATE and REPLACE, in a future tip. The %SCAN BIF has been with us since V3R7, when it was introduced along with %EDITC and %EDITW, to improve string handling. %CHECK, on the other hand, is a relative |