× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It is using the LDA if you don't specify a name and don't use DTAARA keyword.
Without DTAARA keyword and UDS it is looking for the name to match.

 

Scott A. Schollenberger
Vice President, Research & Development
Harris School Solutions
A division of Harris Computer Systems
 
Phone: (610) 239-9988 ext. 305
Fax: (610) 239-9995
Email: sschollenberger@xxxxxxxxxxxxxxxxxx
2011 Renaissance Blvd., Suite 100
King of Prussia, PA  19406

This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee you may not copy, forward, disclose or use any part of the message or its attachments and if you have received this message in error, please notify the sender immediately by return e-mail and delete it from your system. The sender does not accept liability for any errors or omissions in the context of this message that arise as a result of Internet transmission. Any opinions contained in this message are those of the author and are not given or endorsed by the Harris company or office through which this message is sent unless otherwise clearly indicated in this message and the authority of the author to so bind the Harris entity referred to is duly verified.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Tuesday, January 13, 2009 3:39 PM
To: RPG programming on the IBM i / System i
Subject: RE: Passing unwanted parameters

If you don't specify the Dtaara it's using the LDA, right? So what you
were wanting to do with UDS w/o specifying the Data Area, you could do
with Dtaara(*LDA) instead, which would allow you to do the INs and OUTs.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rory Hewitt
Sent: Tuesday, January 13, 2009 2:19 PM
To: RPG programming on the IBM i / System i
Subject: Re: Passing unwanted parameters

Scott,

Actually, I discovered that if you define the data area with the
following
definition in both caller *and* the called program, then it can be both
read
*and* written in the called program:

D ExtraParm UDS 32 Dtaara(EXTRAPARM)

However, if you define it without the DTAARA keyword in the called
program,
then it gets read in automatically, but you can't use the OUT opcode on
it,
since the program thinks it's not a data area.

For some reason, I thought that the IN and OUT opcodes worked on UDS's
which
didn't specify the DTAARA keyword, but apparently not.

Rory


On Tue, Jan 13, 2009 at 11:52 AM, Scott Klement
<rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Hmmm... I didn't think you could read a data area that's locked by the
caller? Am I misremembering?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.