Validate and build a text unit for a keyword operand with a sublist

After validating and building a text unit for the CHARS subparameters, the application continues by using VERIFY to validate and build text units for COPIES(1,(2,4,5)), the next keyword operand and its subparameters. The second subparameter is a sublist.

The application previously called VERIFY to validate and build the text unit for the CHARS keyword operand as indicated above. The VERIFY parameter list contains values returned from the previous call. The pointers have been updated as shown in the following figure:
Figure 1. OUTDES Statement with Adjusted Pointers Indicating Values To Be Processed
OUTDES out1  CHARS(GT10,GB10) COPIES(1,(2,4,5))
                              |      |
                              |      PARM_PTR
                              OPER_PTR
The application invokes VERIFY to validate and begin building a text unit for COPIES with its first subparameter, 1.
VERIFY returns with a return and reason code of zero. The application updates PARM_PTR to point to the first byte of the first sublist element of the second subparameter for the COPIES keyword operand. The adjusted pointers are as follows:
Figure 2. OUTDES Statement with Adjusted Pointers for Values To Be Processed
OUTDES out1  CHARS(GT10,GB10) COPIES(1,(2,4,5))
                              |         |
                              |         PARM_PTR
                              OPER_PTR
The application invokes VERIFY to validate and continue building the COPIES text unit with the first sublist element of the second subparameter, 2.

VERIFY returns with a return and reason code of zero. The text unit for the COPIES keyword operand now contains the first subparameter value, ‘1’, and the second subparameter, first sublist element value, ‘2’. The application must continue calling VERIFY with the remaining sublist elements and then specify a last call to have the COPIES keyword operand text unit completely built. The application would increment SJVESUBL to the next sublist element number and set SJVEPRMP and SJVEPRML to represent the corresponding sublist element, and call VERIFY.