|
"M. Lazarus" wrote: > > Joe, > > I apologize - I looked at the code quickly and thought that I saw > "varying" on the prototype variable. The code will work. But would > putting *VARSIZE on the Cmd line perform better or would that just add > operational descriptor overhead? > Mark, *VARSIZE doesn't cause operational descriptors to get passed. (And operational descriptors don't apply to program calls anyway.) When you code *VARSIZE, you have to make sure the called procedure has a way to know how much data was passed. The most usual ways are through operational descriptors (you would code OPDESC on the prototype), or through an extra parameter giving the length. If *VARSIZE has any effect on a call to QCMDEXC, it would be to make the call faster, since only the actual command length needs to be copied to the parameter.
As an Amazon Associate we earn from qualifying purchases.
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.