× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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(&LOCALVAL) VALUE(&PARMVAL)
MONMSG MSG(D(MCH0801) EXEC(DO)
RCVMSG PGMQ(*SAME (*)) MSGTYPE(*EXCP) MSGKEY(*NONE) +
WAIT(0) RMV(*YES)
CHGVAR VAR(&LOCALVAL) VALUE(' ') /* or as needed */
ENDDO

Do this for each "optional" parameter when you try to access it in your CLLE *PGM.

Hope that helps,

Mark S. waterbury

> On 1/21/2014 3:09 PM, Gary Thompson wrote:
I am looking at changing a local program used for FTP.

Are optional parameters possible in CLLE ?

The idea is existing programs calling this changed program
will not pass the new parameter and will not need changing.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.