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



Bob, Gord,

I tossed Gord's original email, because I've only breifly touched on the
subject before and I'm totally swamped today and figured someone else would
contribute...

So, just quickly, I got the impression from the original post that what Gord
was looking for was more along the lines was an array that defined subfields
of a data structure using the OVERLAY keyword, i.e.:

   D DataStruct      DS
   D   A                           10    DIM(5)
   D     B                          5    OVERLAY(A)
   D     C                          5    OVERLAY(A:6)

This is RPG-IV only, no RPG-III.  The nice feature about this is that you can
sort the array on any subfield (forget how, someone else???)

Anyway, I've always felt that multiple occurence data structures were a real
PITA, regardless of the RPG flavor.  I have used them, but usually not without
some brain strain involved.

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952


----------------- Original Message -----------------

Gord, check out the multiple occurrence data structure. You can probably
get what you want using it and the OCUR  opcode in RPG III or OCCURS on the
D-spec and OCCUR in RPG IV. Which RPG class did you attend? The S6109 RPG
IV class from IBM includes a topic on how to do this.

Bob

Bob Slaney/Atlanta/IBM @ IBMUS (Lotus Notes)
VM id: WTSCPOK.RJSLANEY@VM
Internet id: rjslaney@us.ibm.com
Tieline 596-3022 Direct (770)835-3022
Fax tie 596-3912 Direct (770)835-3912

IBM Learning Services
AS/400 Course Materials Development
IBM Corp.
3100 Windy Hill Road
Atlanta, GA 30339
Internal Zip WE3A1
+---
| 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 thread ...

Follow-Ups:

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.