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.
OUTDES out1 CHARS(GT10,GB10) COPIES(1,(2,4,5))
| |
| PARM_PTR
OPER_PTR
- 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.
OUTDES out1 CHARS(GT10,GB10) COPIES(1,(2,4,5))
| |
| PARM_PTR
OPER_PTR
- 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.