Midrange News for the IBM i Community

Posted by: Harold Blaisdell
RPG Data Structures / Files
has no ratings.
Published: 12 Jan 2012
Revised: 23 Jan 2013 - 2185 days ago
Last viewed on: 16 Jan 2019 (9513 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

RPG Data Structures / Files Published by: Harold Blaisdell on 12 Jan 2012 view comments(8)

I have been asked to write several programs using some files that have 536 amount type fields as well as some key fields(The amount field are all identically defined). I need to get the 536 fields into an array. Code wise the only way I see to do it is create a data structure with the first field being a DIM(536) and then the rest of the array would be the actual names of the 536 fields. When I do my read the fields would get populated and then I could use the DIM field. I'm sure there is an easier way to create this Data Structure / Array but I am not sure how. Does someone have a better way????


Thanks in advance


Return to midrangenews.com home page.
Sort Ascend | Descend