|
THe OP program specified UDS -- that's an auto IN data structure. Yes the
OP was doing an IN, but for no reason.
On Sat, Oct 20, 2018 at 11:11 PM Barbara Morris <bmorris@xxxxxxxxxx>
wrote:
On 2018-10-20 5:25 PM, Brian Parkins wrote:
I think you have some superfluous code there, Shane.
Your existing code could be written as this single line:
D ADS EUDS EXTNAME(FILE)
- the "U" in column 23 assumes a Data Area Data Structure and reads in
the *DTAARA ADS at the start of the program - no need for DEFINE or IN.
The equivalent free format would look like:
Dcl-DS ADS EXTNAME('FILE') Dtaara(*Auto) End-DS;
Brian, that would make the program behave differently. It would be
equivalent to IN *LOCK at the beginning of the program and OUT at the
end. Shane's program was just doing an IN, without lock and without any
change of the data area.
--
Barbara
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.