×
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.
Hi Adam
thanks for your reply
This does NOT look familiar - HOWEVER - it DOES look promising
I'll give it a go and let you know the results
Alan Shore
Programmer/Analyst, Distribution
E:AShore@xxxxxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
Adam Glauser
<adamglauser@gmai
l.com> To
Sent by: rpg400-l@xxxxxxxxxxxx
rpg400-l-bounces@ cc
midrange.com
Subject
Re: Reading a file into a data set
06/25/2009 04:55
PM
Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.com>
Would it work if you had a structure like (completely winging the
spacing here)
array DS dim(3)
based(%addr(record))
number 5 0 dim(24)
record DS likeRec(fileRec:*INPUT)
Now, I think if you read the record into the 'record' DS, you should be
able to address each subfield as array(x).number(y).
Again, this is completely untested, so YMMV!
--
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.