<http://schema.org/articleBody>
" Hi, Gary: If you issue DSPPGM against a CLLE *PGM you will see that the number of parameters is always set to MIN(0) and MAX(255). So, yes, it is possible. You need to monitor for MCH0801 to detect if an optional parameter was not passed, e.g.: CHGVAR VAR(&amp;amp;LOCALVAL) VALUE(&amp;amp;PARMVAL) MONMSG MSG(D(MCH0801) EXEC(DO) RCVMSG PGMQ(*SAME (*)) MSGTYPE(*EXCP) MSGKEY(*NONE) + WAIT(0) RMV(*YES) CHGVAR VAR(&amp;amp;LOCALVAL) VALUE(' ') /* or as needed */ ENDDO Do this for each &amp;quot;optional&amp;quot; parameter when you try to access it in ..."^^<http://www.w3.org/2001/XMLSchema#string>
<http://archive.midrange.com/midrange-l/201401/msg00473.html>