×
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.
I'm testing the proc in a service pgm that defines 3 parms, all of which
are 10 bytes, alpha and "const". The last 2 have "options(*nopass)". I'm
testing for the presence/absence of the last 2 parms using %addr(parm)
equal/not equal to *null.
I have the main pgm call the proc twice, once with all 3 parms present (x
= proc(p1:p2:p3)), the second time with only the 1st parm present (x =
proc(p1)). In debug, the 2nd invocation of the service pgm proc shows the
2nd and 3rd parms containing the data from the 1st invocation. Since I
didn't pass those parms in the 2nd invocation, shouldn't they be
undefined??? If not, how does one have the proc function differently based
on the number of parms passed? Do I have to check the %parms BIF? If
that's the case, what exactly is %addr(parm) good for?
Arthur J. Marino
Southern Container Corporation
(631) 297 - 2276
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: RPG-ILE Service Pgm and Opening/Closing Files, (continued)
This mailing list archive is Copyright 1997-2025 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.