× 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.



Buzz,
You can define the LDA in RPGIII using the *NAMVAR DEFN in your "C" specs.
The following is an example:
ILDA DS
C *NAMVAR DEFN *LDA LDA
C IN LDA

By specifing *LDA in factor 2, you are indicating the the Local Data Area is to be used.
The UDS on the "I" spec indicated an implictly defined Data Area Data Structure. By leaving out the name on the "I" spec, the system understood that it was to use the Local Data Area.
The use of UDS to define a Data Area Data Structure implied a Read (IN) at the start of the program and a Write (OUT) at the end.

There is no requirement for using that method other than the desire to avoid the *NAMVAR statement and coding the IN and OUT functions yourself.

Hope this helps,

Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2
IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3









----- Original Message ----
From: Jerry Adams <jerry@xxxxxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, November 28, 2007 12:19:03 PM
Subject: Re: UDS & Allocations

Buzz,

Did you mean RPG III? RPG IV is not OPM.

If it is RPG III, is converting it to IV out of the question? Once it's
in IV, you can do what Charles suggested.

* Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
615.995.7024
fax
615.995.1201
email
jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Buzz Fenner wrote:
Charles, the program in question is an OPM RPG IV program. I'm unaware of
an alternate way to define the data area data structure other than to use
"UDS".

Buzz Fenner
Systems Analyst/Network Administrator
870.930.3374
mailto:bfenner@xxxxxxxxxxxxxxxx



message: 5
date: Wed, 28 Nov 2007 09:54:47 -0500
from: "Wilt, Charles" <WiltC@xxxxxxxxxx>
subject: RE: RPG400-L Digest, Vol 6, Issue 1131

Buzz,

There's an implicit IN *LOCK done by the cycle, along with an implicit OUT,
on a UDS.

To prevent, remove the U and use the DTAARA keyword on the define.

HTH,
Charles







--
PRIVACY WARNING: For auditing purposes, a copy of this message has been
saved in a permanent database.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.