× 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: Multiple occurance data structures
  • From: Ed.Doxtator@xxxxxxxxx
  • Date: Fri, 10 Oct 1997 12:57:21 +0100

Rudolf wrote:

>One possibility is to use the heap now available in ILE RPG.

>You can ALLOC some structure with n occurrences.
>Later you can REALLOC this thing to m occurences,
>where m can be less or greater than the initial n.
The idea of using the heap is a good one.  You'll have to write routines to
support heap management.  The ILE RPG Programmer's Guide has some examples
to illustrate dynamically-allocted memory.

Another idea might be to create a C module that does nothing but linked
list processing.  You'd need routines to create and delete the lists, add
records, delete records, and fetch records.

These ideas will only work under ILE RPG.  Under OPM RPG, there isn't
access to a heap, so you'd have to pull a some sort of stunt using
something like a user space or, if the program is interactive, a
non-displayed subfile.

-Doc





Rudolf.Wiesmayr @ mag.linz.at on 10/10/97 07:19:21

Please respond to MIDRANGE-L@midrange.com

To:   MIDRANGE-L @ midrange.com
cc:    (bcc: Ed Doxtator/SSAOT)
Subject:  RE: Multiple occurance data structures




One possibility is to use the heap now available in ILE RPG.
You can ALLOC some structure with n occurrences.
Later you can REALLOC this thing to m occurences,
where m can be less or greater than the initial n.
BTW: I am not a 'native RPG writer', my background is the
Algol family of languages. And concerning language constructs,
even C is some relative to this forefather.
So I have not tested my proposal.
HTH,
-----------------------------------------------------------------
Dipl.-Ing. Rudolf Wiesmayr   Tel:     +43 - 0732 / 7070 - 1720
Magistrat Linz, ADV/AE       Fax:     +43 - 0732 / 7070 - 1555
Gruberstrasse 40-42          mailto://Rudolf.Wiesmayr@mag.linz.at
A-4041 Linz                  IBMMAIL: at3vs7vs@ibmmail.com
------ http://www.linz.at <<<--- Digital City Linz, Austria -----
- City of Linz: awarded by 'Speyerer Qualitaetswettbewerb 1996' -
-----Original Message-----
From:     Bob Luebbe [SMTP:bluebbe@conn2000.com]
Sent:     Wednesday, October 08, 1997 8:28 PM
To:  'MIDRANGE-L@midrange.com'
Subject:  Multiple occurance data structures
Is there a way to dynamically increase the size of a multiple occurance
data structure in RPG IV?

att1.unk


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.