Test Operations

The test operations are:

TEST is available in both the traditional syntax and free-form syntax. The other operations are available only in the traditional syntax. See Figure 195 for an example of how %BITAND can be used to duplicate the function of TESTB.

The TESTx operations allow you to test fields specified in the result field. TEST tests for valid date, time, or timestamp data. TESTB tests the bit pattern of a result field. TESTN tests if the character field specified in the result field contain all numbers, or numbers with leading blanks, or all blanks. TESTZ tests the zone portion of the leftmost character of a character field specified in the result field. The result of these operations is indicated by the resulting indicators.



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