|
If this is all ILE stuff, you could use exported variables
e.g.:
In one program, you have this:
D ControlDS DS Export
/copy qrpglesrc,controlds
and in the others, you have this:
D ControlDS DS Import
/copy qrpglesrc,controlds
where the CONTROLDS member has something like the following:
D Field1 100A
D Field2 10I 0
D Field3 100A
and so on...
In the first (exporting) program you initialize the variables in the
ControlDS structure to whatever values you want, and those values are then
available in any of the other (importing) programs. Any time you make a
change to the variables in any of the programs, that change is instantly
visible in any of the other programs.
Note: Some people will say exported variables are *bad*. They're not, if
you only have limited choices, and it sounds like that's the situation
you're in.
Rory
----- Original Message -----
From: "Jon Paris" <jon.paris@xxxxxxxxxxxxxx>path -
To: "Rpg400 Rpg400-L" <rpg400-l@xxxxxxxxxxxx>
Sent: Sunday, July 29, 2012 8:08 PM
Subject: Seeking inspiration ...
I have a series of programs that need to be able to share some basic
information.
Solution must have similar characteristics to the LDA in as much as it
must be available to any batch job submitted from code running in
interactive or web mode,
BUT there are some limitations:
1) Adding additional parameter(s) is not an option
2) Using the LDA is not an option (other software thinks it "owns" it)
3) Does not involve the use of a file if at all possible.
Everything I have thought of so far falls apart somewhere along the
so I'm hoping someone else here has dealt with a similar issue and can
stop me from going round in circles with this one.
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.
--
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.
--
Rory Hewitt
http://www.linkedin.com/in/roryhewitt
As an Amazon Associate we earn from qualifying purchases.
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.