In a service program -

getStatus(parmsStatus); (returns status code)
modifyStatus(parmdates:parmcontractinfo); (returns indicator)


An RPGIV program that calls/uses the service program -
It returns a 1 character code that could be status or an indicator. (0,1)

*entry
parmsStatus (*omit)
parmdates (*omit)
parmcontractinfo (*omit)
returnvalue

What gets passed to RPGIV pgm determines whether it returns status or indicator.

scStatus = getStatus(parmsStatus);
protStatus = modifyStatus(parmdates:parmcontractinfo);



RPGIII program calls the RPGIV program that calls the functions in the above service program.

First draft, for what it's worth :--)

John B

I think it really needs two functions : one for establishing the value of the status, so that function could eventually be > > shared by other programs, and another to let the RPGIII know if the field should be protected or not.

How would you tackle this, especially the second function?

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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.