×
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.
Thanks gentlemen.
I hadn't considered LDA -- It's been a long time since I used that facility in new development. Not saying it isn't the right solution, but it seems old-fashioned as I try to employ newer techniques and ILE stuff. Developing at 7.1 here. Thought there'd be a better way, especially when the data structure that needs to be passed contains various types, including varying-length character fields.
(Still waiting for the response that says "it's easy").
-- Michael (OP)
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Thursday, May 24, 2012 11:51 AM
To: RPG programming on the IBM i / System i
Subject: Re: Passing data structure to batch job
Sure. You can even uniquely name them and keep them hanging around from day to day. (It could keep "last invoice number used" for instance.)
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/books/c092508602.htm
On 5/24/2012 10:47 AM, Dave wrote:
I'm not following this interesting thread! The LDA of the second job
cannot use the LDA of the first job. Can it?
2012/5/24 David Gibbs<david@xxxxxxxxxxxx>
On 5/24/2012 9:56 AM, Jonathan Ball wrote:
That was my first thought as well. An alternative would be to pass
the data structure as a single large parameter. The submitted job
can redefine the parameter as an internal data structure with
multiple
elements.
The LDA approach strikes me as a little easier.
There could be issues passing a large parameter to a program ...
especially if it's going to be submitted.
http://wiki.midrange.com/index.php/Parameter_passing
Using the LDA is the safest approach, I think.
david
--
Booth Martin
802-461-5349
http://www.martinvt.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.