Sign in

docs RPG Reference

TESTZ (Test Zone)

TESTZ (Test Zone)

Free-Form Syntax(not allowed - use the %BITAND built-in function with X’F0’ to isolate the zone part of the character)
CodeFactor 1Factor 2Result FieldIndicators
TESTZCharacter fieldAIJRXX

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 71 through 76. The characters &, A through I, and any character with the same zone as the character A set on the indicator in positions 71 and 72. The characters - (minus), J through R, and any character with the same zone as the character J set on the indicator in positions 73 and 74. Characters with any other zone set on the indicator in positions 75 and 76.

For more information, see Test Operations.