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



Jon,

Wow, I've never seen uses of the LDA like that before! I agree that whoever
came up with that idea should be drawn and quartered.

Jerry C. Adams
IBM i Programmer/Analyst
When Douglas Engelbart invented the computer mouse in 1968, he called it an
"X-Y Position Indicator for a Display System." - EUI
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jon Paris
Sent: Thursday, May 24, 2012 3:09 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Passing data structure to batch job

That wasn't the scenario I had Jerry. In my case the LDA was being used to
contain variables that customized the software for the user. It was set when
they signed in and used throughout the application. Trouble was nothing
stopped you from calling other apps from the command line within the primary
app. The called app looked to the LDA to see if it had already been
initialized for its use. Found a flag that indicated the data had been
populated and then blew sky high because the data in the LDA wasn't what it
expected because it was actually residual from the first app.


On 2012-05-24, at 3:19 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

I've seen these problems, too, Jon. Always when the programmer
hard-coded the definition of the LDA in the program. That is, the LDA was
"flexible"
for each procedure.

On the other hand, I have never had an issue with using the LDA
because the definition is defined in a copy book so it is always the
same regardless of which program is using it.

That said, I use it only for passing things like report selections
from one program to another, not data.

Jon Paris

www.partner400.com
www.SystemiDeveloper.com




--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


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.