|
----- Message from Jon Paris <Jon.Paris@xxxxxxxxxxxxxx> on Tue, 6. . .
May 2008 10:37:58 -0400 -----
. . .
You still seem to be missing the point. The program does not
"receive the data". Only a pointer to the data. The _only_
information the called program receives about the parameter is where
it starts in memory. Period - end of story. Nothing about its size
or data type or anything else.
Consequently interpretation of the data is _entirely_ based on the
definition in the called program.
Note that all processing of the parameter within the called program,
actually happens in the memory "owned" by the calling program - that
is why it is critical to match the definitions in order to avoid
corrupting memory.
Again this is not a COBOL thing or an AS/400 thing - it occurs with
any language that passes parameters by reference which includes (for
example) the C language.
Jon Paris
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.