Thanks for the reply Dave
Im being more of a moron than I usually am - this is just not clicking
Can you supply an example?
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of dlclark@xxxxxxxxxxxxxxxx
Sent: Tuesday, June 12, 2018 1:48 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: [EXTERNAL] Re: File having an array using new free form
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 06/12/2018 01:39:32
PM:
Before I forget - we are on V7r1
I have also posted this question on the Midrange Systems Technical
Discussion side
Here is my situation - hope that it makes sense
I have defined a file where the last 32 fields on the record are all
the same size Fields 1 through 31 represent the day of the month, with
field 32 being the total of fields 1 through 31
How can I define these fields within my program (using new free-form)
so that these 32 fields are an array That way, I can use the day of
the month to determine which occurrence I need to deal with
Like I said - I hope my question makes sense
As always - all answers gratefully accepted
Define the record layout as usual -- a data structure based on an external object name. Then define a stand-alone array whose address is based on the address of the first field in your record layout that begins the 32 multiple fields of the same length.
Sincerely,
Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary information. If you have received this message in error, please immediately notify the sender and delete and destroy the message and all copies. All unauthorized direct or indirect use or disclosure of this message is strictly prohibited. No right to confidentiality or privilege is waived or lost by any error in transmission.
*********************************************************************************************
--
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.