|
This is another of those "new to RPG" questions that wasn't covered in the basic RPG course. I've been searching manuals trying to find the RPG equivalent to the following Cobol code. 01 INDEX BINARY. 01 ARRAY. 05 ROWS OCCURS 10 TIMES. 10 ELEMENT1 PIC X(20). 10 ELEMENT2 PIC S9(5)V9(5) COMP. ETC. MOVE 9 TO INDEX. MOVE 'Wish I could do this" TO ROWS(INDEX). I don't care so much about the data type definitions (I can handle that) more about how to do it. Any help is greatly appreciated. Gord Royle _______________________________________________________________ Cott - The Leader in Premium Retailer Brand Beverage Innovation. _______________________________________________________________ +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.