× 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 Don, Jerry, and the group -

>Actually the error message is generated in the calling program, not the
>called program, so the CLP being called never has a chance to check for the
>error.
>
>I believe if you attempt to execute the RTV programs directly instead of
>through a command an error would be generated indicating insufficient
>numbers of parameters were passed without ever executing a statement in the
>RTV program.  In fact, I get message CPD0172 when I attempt to execute
>TAADATDC with only the first parameter.

The command analyzer does in fact pass all of the parameters, however it
passes a null pointer for parameters not specified in the command.  Passing
a null pointer is very different than not passing a pointer at
all.  Testing for this is the equivalent of the RPG IV comparison to *NULL,
not the use of %PARMS.

You can pass a null pointer to a CLP program yourself from inside of
another program, but there's no way to do it from a command line.

As already mentioned, CLLE programs play by different rules.

Ken
Opinions expressed are my own and do not necessarily represent the views of
my employer or anyone in their right mind.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.