I am often finding that I am declaring a local variable just so I can call another procedure. In that case, the called procedure wouldn't use the variable. I see other programmers who don't declare the variable but just pass 0 or ' ' or *BLANK, etc.
Here one can only presume that the parameters with ' ' or 0 aren't used. In my first example, I can see that client_type isn't initialised so isn't being used, although it probably still needs a comment. Also when I declare the local variable, I use the same reference field that is used in the prototype.
D MyProc PR
D client_number S LIKE ( REF_client_number )
D client_type S LIKE ( REF_client_type )
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.