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



So you've never had to integrate two processes that define the LDA differently? Get ready to write a utility to save the current state of the LDA, run the other process, then restore the LDA to the previous state. What a nightmare. All just because you won't pass parameters and the LDA is 'easy to use'.

In a similar vein I'm using the GDA to pass parameters between group jobs. Wish I could avoid using the GDA but you can't pass parameters to a group job initial program.

Paul

Principal Programmer Analyst
IT Supply Chain/Replenishment


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Albert York
Sent: Thursday, February 03, 2011 1:46 PM
To: RPG programming on the IBM i / System i
Subject: Re: Separate buisness and display logic question

I have never had a problem understanding data being passed in the LDA.
It's no different than global variables, except it spans across
programs.

Would it have been easier if you had to change 20-30 parms that were
being passed as parameters?

Instead of simply an /include you should have taken the opportunity to
externailize the layout of the LDA so it would be standard and future
changes would be even easier.

Just because you are not comfortable with a technology doesn't mean it
isn't useful.

Albert

On Thu, Feb 3, 2011 at 10:32 AM, Harman, Roger <Roger.Harman@xxxxxxxxxx> wrote:
It's way too obscure using the LDA.  If I call a program with parm('mypo#'  'mychangeorder')  or look at the called program and see a plist or procedure prototype or interface, it's abundantly clear where the info came from.  If it is passed in the LDA, it's not at all clear how/where it came from or got there.

I recently had to change a number of programs that passed 20-30 parms in the LDA.  We were expanding an account number.   What a pain.  I did externalize the LDA layout to a '/include' but still far too much work.  Plus, the intermediate CL's that manipulated the LDA.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.