Maybe I'm just lazy (oh yeah, I am), but I don't type all of that. ...

Nope Jerry - you're doing it absolutely the right way.

To take it one step further, if you want other data from the file to precede
the array in the DS you can do it this way:

D SalesData DS
D CustNo
D Division
D QuarterData
D Q1 Overlay(QuarterData)
D Q2 Overlay(QuarterData: *Next)
D Q3 Overlay(QuarterData: *Next)
D Q4 Overlay(QuarterData: *Next)

D SalesForQtr Overlay(QuarterData)
D Like(Q1) Dim(4)

I wrote up this technique as well as the one you showed earlier back in Feb
of 2003 - the article was called "D-spec Discoveries" and you can find it
here:

http://www.eservercomputing.com/iseries/articles/index.asp?item=DIRECT&sid=1
0&id=553

Jon Paris
Partner400

www.Partner400.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.