|
Thank you Scott and Charles.
I agree that my assumption was wrong, I was just "thinking out loud". I
have never had this happen before.
Here is the source:
The single call:
prc_items(key01 : bbnumber);
PI
dcl-pi prc_items;
@_key01 like(bbkey01) const; [packed 9]
@_billback# like(bbnumber) const; [char 15]
end-pi prc_items;
The code in the subprocedure:
chain (@_key01) bbhdrp;
if %found(bbhdrp);
s4number = %trim(bbnumber);
if s4number = *blanks;
s4number = @_billback#;
endif;
After the Chain, bbnumber is blank, which it should be. After the chain
@_billback# is blank too, but not before the chain. I did a small test
where I saved the @_billback# before the Chain, and that variable did not
change, so I must be overwriting something, but I don't see what it is.
This is the only occurrence of @_billback# in the whole program. I just
did a small test where I made @_billback char(15) to satisfy my curiosity
but @_billback# was still blank after the chain.
"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments accompanying it) contain confidential information belonging to the sender. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of the information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission."
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.