× 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: OVERLAY Keyword in VARPG
  • From: "Buckingham, Ed" <Buckingham@xxxxxx>
  • Date: Fri, 27 Oct 2000 12:04:04 -0400

I am trying to use the OVERLAY keyword when defining a data structure in
VisualAge RPG program. We are currently running on WIN98, V3R2M3 and OS400
version 4.3.  Below is an example of the data structure:

     D                 DS
     D LEDGER_FILE                         DIM(50)
     D   AR_TYP                       5A   OVERLAY(LEDGER_FILE:1)
     D   AR_DAT                       8S 0 OVERLAY(LEDGER_FILE:6)
     D   AR_DES                      35A   OVERLAY(LEDGER_FILE:14)
     D   AR_REC                       1A   OVERLAY(LEDGER_FILE:49)
     D   AR_PAY                       6S 2 OVERLAY(LEDGER_FILE:50)
     D   AR_DEP                       6S 2 OVERLAY(LEDGER_FILE:56)
     D   AR_BAL                       7S 2 OVERLAY(LEDGER_FILE:62)

When I compile this in VARPG all of the subfields are not being defined as
arrays.  When I try to move a value to any of the OVERLAY elements, it
treats the subfields as arrays of one element long and moves the whole
contents of LEDGER_FILE to the subfield.  I have taken the same code and
created it in a regular RPGLE program and it correctly handled the creation
of the arrays for both LEDGER_FILE and the AR_xxx subfields.  Has any one
had this happen to them?  If so how did you handle it?  If not could this be
an error in the VARPG compiler?  If so is there a fix for it?Thanks in
advance for any help!  This is becoming very frustrating.

Ed Buckingham   
IS Help Desk Consultant
Phone (724) 779-5683
buckingham@ae.com

+---
| This is the CODE/400 Mailing List!
| To submit a new message, send your mail to CODE400-L@midrange.com.
| To subscribe to this list send email to CODE400-L-SUB@midrange.com.
| To unsubscribe from this list send email to CODE400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: larry@paque.net
+---

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.