Logic testing

You can use the IF statement to perform logic tests for 5250 terminals on the screen image buffer data or the incoming or outgoing data stream.

You can specify a logic test on the screen image buffer for the terminal by coding the B+, B-, C+, C-, or (row,col) location options on an IF statement. This type of logic test operates on the data as it would be displayed at a real terminal. All logic tests on a screen image buffer are performed after the buffer has been modified according to the message generated or received. If a received message contains invalid commands or orders, the data received before the invalid command or order is processed and can modify the screen image buffer, but no data following the invalid command or order is processed.

You can specify a logic test on an incoming or outgoing data stream, including headers, commands, and orders, by coding the D+, TH+, RH+, or RU+ location value on an IF statement. For more information about coding these values on the IF statement, see Coding the LOC operand.