×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Dan,

The old trick that dates from RPG III is to map the database fields to an array 
element in the old I-specs. Something like:

I C-REC
I                             flda101                      Arra1(1)
  etc.

Perhaps a lot of coding, but I think this wil work: read a record and the array 
is filled. It was a long time ago I did this, so I may be mistaken.

Regards,
Carel Teijgeler
  

*********** REPLY SEPARATOR  ***********

On 27-1-04 at 15:15 Dan Belu wrote:

>Here is the situation:
>
>       I want to convert filea with a format like:
>flda1 flda2 flda101 flda102 ... flda124 flda201 flda202 ... flda224
>
>       to fileb that looks like:
>fldb1 fldb2 fldb11 fldb21
>fldb1 fldb2 fldb11 fldb21
>.
>fldb1 fldb2 fldb11 fldb21 (times 24)
>
>The fields flda101, flda102, ..., flda124 have the same size and map all
>to  fldb11 and flda201, flda202, ..., flda224 are alike and map to fldb21
>
>I tried to use pointer based arrays to load the data in an elegant way.
>But is not working although is suppose to.
>The problem is that RPG does not load the data into the fields that aren't 
>directly used in the program.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.