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>
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.
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxx for any subscription related
Help support midrange.com by shopping at amazon.com with our affiliate