RPG/400 Help

TESTZ (Test Zone)

*---------*---------------*-----------------*----------------*---------------*
|   CODE  |    FACTOR 1   |     FACTOR 2    |     RESULT     |  INDICATORS   |
|         |               |                 |      FIELD     |               |
*---------*---------------*-----------------*----------------*---------------*
| TESTZ   |               |                 | Character      |               |
|         |               |                 | field          |         |
*---------*---------------*-----------------*----------------*---------------*

The TESTZ operation tests the zone of the leftmost character in the result field. The result field must be a character field. Resulting indicators are set on according to the results of the test. You must specify at least one resulting indicator positions 54 through 59. The characters &, A through I, and any character with the same zone as the character A set on the indicator in positions 54 and 55. The characters - (minus), J through R, and any character with the same zone as the character J set on the indicator in positions 56 and 57. Characters with any other zone set on the indicator in positions 58 and 59.


[ Top of Page | Previous Page | Next Page | Table of Contents ]