× 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.



"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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.