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 ProcessedOUTDES 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.
- Set the operand pointer field, SJVEOPEP, to OPER_PTR.
- Set the operand length field, SJVEOPEL, to 6 (length of 'COPIES').
- Set the subparameter number field, SJVEPARM, to 1.
- Set the subparameter pointer field, SJVEPRMP, PARM_PTR.
- Set the subparameter length field, SJVEPRML, to 1 (length of '1').
- Issue SJFREQ REQUEST=VERIFY,PARM=SJVEP.
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 ProcessedOUTDES 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.
- Set the subparameter number field, SJVEPARM, to 2.
- Set the sublist element number field, SJVESUBL, to 1.
- Set the sublist element pointer field, SJVEPRMP, to PARM_PTR.
- Set the sublist element length field, SJVEPRML, to 1 (length of
'2').
- Issue SJFREQ REQUEST=VERIFY,PARM=SJVEP.
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.