|
I short handed that Jon, but I do typically put my array name after the "**
"
On Thu, Aug 8, 2013 at 9:57 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
No - mercy ... please ....save me from compile time data ....--
aaaarrrrrgggggggghhhhhhh
And what is worse compile time data with no array names on the data.
Sorry but I _hate_ compile time arrays with a passion.
On 2013-08-08, at 8:21 AM, Michael Schutte <mschutte369@xxxxxxxxx> wrote:
D Array DS 7 CTDATA PERRCD(1) DIM(4)wrote:
D SubSet1 1 OverLay(Array)
D SubSet2 6 Overlay(Array:*NEXT)
**
hheader
HHEADER
ffooter
FFOOTER
Or...
D Subset1 Ds 1 CTDATA PERRCD(4) DIM4)
D Subset2 Ds 6 CTDATA PERRCD(1) DIM4)
**
hHfF
**
header
HEADER
footer
FOOTER
Sometimes, things are just over thought...
On Wed, Aug 7, 2013 at 6:07 PM, Rory Hewitt <rory.hewitt@xxxxxxxxx>
with
As a slight alternative, how about this:
D ds
D ARRAYS 28 inz('hheaderHHEADERffooterFFOOTER')
D ARRAY dim(4) Overlay(ARRAYS)
D ARRAYA 1 overlay(ARRAY)
D ARRAYB 6 overlay(ARRAY:*next)
Basically the same thing, but it intersperses the 1-char lookup values
string,the 6-char return values.
This also allows slightly easier-to-view formatting of the ARRAYS
wrote:to show each ARRAY element on its own line:
D ARRAYS 28 inz('hheader+
D HHEADER+
D ffooter
D FFOOTER')
Rory
On Wed, Aug 7, 2013 at 1:14 PM, Booth Martin <booth@xxxxxxxxxxxx>
not
Is this responsive to your request?
D ds
D ARRAYS 28 inz('hHfFheaderHEADERfooterFOOTER')
D ARRAYA 1 dim(4) overlay(ARRAYS)
D ARRAYB 6 dim(4) overlay(ARRAYS: *next)
The simplest way seemed to me to be using an ALT array, but that can
(RPG400-L)be done entirely inside the D-specs; leastways, I couldn't do it.
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
mailing list--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.
--
Rory Hewitt
http://www.linkedin.com/in/roryhewitt
--
This is the RPG programming on the IBM i (AS/400 and 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.
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
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.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
--
This is the RPG programming on the IBM i (AS/400 and 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.
This is the RPG programming on the IBM i (AS/400 and 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 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.