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


  • Subject: RE: Data Arrays
  • From: jerickson@xxxxxxx
  • Date: Fri, 6 Oct 2000 10:56:45 -0700

Title: RE: Data Arrays

Something like this:

RPG

E                    S3L        10 32

I            DS                                     
I                                        1  32 S3L
I                                        1  20 EL1
I                                    P  21  325EL2


RPGIV

D                 ds
D S3L                           32A   DIM(10)
D  EL1                          20A   OVERLAY(S3L)
D  EL2                          12P 0 OVERLAY(S3L:*NEXT)


HTH,

Regards,
Jon A. Erickson
Sr. Programmer Analyst
800.COM Inc.
1516 NW Thurman St
Portland, OR  97209-2517
 
Direct: 503.944.3613
Fax: 503.944.3690
Web: http://800.com
 

-----Original Message-----
From: groyle@cott.com [mailto:groyle@cott.com]
Sent: Friday, October 06, 2000 9:49 AM
To: RPG400-L@midrange.com
Subject: Data Arrays


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


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.