|
The layout is Sales1-53 then cost1-53... so consecutive
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gene Burns
Sent: February-13-08 10:46 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: File Fields as array elements
What is the file structure? Are the fields alternating, (sales, cost,
rebate, sales, cost, rebate, ...) or are they consecutive (sales1,
sales2,
sales3, ...)?
Gene
On Feb 13, 2008 8:00 AM, Mike Roderick
wrote:
In RPG, is there a way to refer to a field in a file by its relativeof
position in the file?
E.g. File with 10 fields use array element FIELD(5) to get to 5th
field.
I have a file with 53 weekly buckets for a number of different pieces
information(sales, cost, rebates, etc) so there are > 300 fields.a
I know I can define an array in the I specs and list the fields one at
time but is there any other mechanism I can use that would allow me toit
access the fields in the order they exist in the file(using array like
syntax). Maybe a Data structure or SQL?
Any thoughts would be appreciated
Thanks,
Mike
____________________________________
This email message is intended for the use of the individual to which
is addressed and may contain confidential and privileged information.Any
unauthorized distribution or disclosure is prohibited. If you havereceived
this message in error, please contact the sender immediately anddelete it
from your system.list
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
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 AS400 / iSeries (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 AS400 / iSeries (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.
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.