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



Why not just:

D  Field    DS
D  Part1         
D  Part2    
D  Part3


or 

D  Field    DS
D  Part1    s      3     
D  Part2    s      3
D  Part3    s      3

depending on whether you need to define Parts 1-3?



---------------------------------
Booth Martin
http://www.martinvt.com
---------------------------------
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: 05/18/05 16:15:52
To: rpg400-l@xxxxxxxxxxxx
Subject: DS / Overlay keyword
 
I have a question about using Overlay(Fieldname: *Next).
 
This (simplied example) works:
 
D DSName          DS
     D   Field                        3A    Dim(3)
     D   Part1             1        3
     D   Part2             4        6
     D   Part3             7        9
 
 
But I want to do this without using positions to define the fields.
 
 
I tried this:
 
D DSName          DS
     D   Field                      3A    Dim(3)
     D   Part1                      3A   Overlay(Field: *Next)
     D   Part2                      3A   Overlay(Field: *Next)
     D   Part3                      3A   Overlay(Field: *Next)
 
And I get this error:
 
RNF7303S Subfield PART2 defined with keyword OVERLAY is too big;
specification ignored.
RNF7303S Subfield PART3 defined with keyword OVERLAY is too big;
specification ignored.
 
I want Field(1) = Part1,  Field(2) = Part2,  and Field(3) = Part3
 
Is there any way to do this using Overlay or without defining the fields
using positions?  The fields Part1, Part2, Part3, are also already defined
in an external file.  I don't know if that will make a difference or not.
 
 
 
Thanks!
 
Mike
 
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
 
 
.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.