Validate a keyword operand

The application now chooses to have VERIFY validate that CHARS is an OUTDES keyword operand. (In this example, and the other examples that follow in this information, pointers below the statement are used to indicate values that are processed in the example.) The application sets OPER_PTR to point to the first byte of CHARS, and determines the length of the CHARS operand. The application issues the VERIFY macro to validate CHARS. The pointers are as follows:
Figure 1. OUTDES Statement with Pointers Indicating Values To Be Processed
OUTDES out1  CHARS(GT10,GB10) COPIES(1,(2,4,5))
             |     |
             |     PARM_PTR
              OPER_PTR
 

VERIFY returns with a return and reason code of zero. This indicates that VERIFY understands the statement and that CHARS is a valid keyword operand for the OUTDES statement.

The application can proceed to validate the keyword operand COPIES or it can request that VERIFY begin building a text unit for the keyword operand, CHARS, and the rest of the OUTDES statement. The application can continue to use the SJF environment established on the VERIFY invocation in this example. To continue to use the environment, the application must save the value in the SJVESTOR field when the SJVEP area is cleared.