|
Monica - what do you mean "forcing information to pass".
The only thing that passes anywhere is the pointer to the original DS
passed on the call.
From there on copy of the definition is BASED on that pointer to
allow access to the _original_ data. No data is moved - it stays in
the original calling program as it does with the fixed form method.
I think you may be misunderstanding how parameters work.
On Mar 11, 2020, at 11:11 AM, Mónica Anastácio <monicaanastacio@xxxxxxxxx> wrote:
forcing
The solution with pointer from Joe end up being exactly the same ,
information to pass from one side to another, and that’s what I
want to avoid Maybe theres no other way of using a external DS like
parm entry in FREE.
DCL-DS waapids_orig extname('FR5005DS') inz;
-----------------------------
--------------------------------------------------------
DCL-PI *N;
p_waapids like(waapids_orig);
END-PI;
----------- --------------------------------------------------------
begsr $pcpgm;
* waapids_orig = p_waapids; *
endsr
--------------------------------------------------------------------
begsr $ucpgm;
* p_waapids = waapids_orig; *
return;
endsr;
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.