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



On 6/22/2016 5:14 PM, dlclark@xxxxxxxxxxxxxxxx wrote:

d dsHeader_Columns...
d ds qualified
d Hdr_Col_A 35a inz('Row_Number')
d Hdr_Col_B 35a Inz('Zero Part Number')
d Hdr_Col_C 35a inz('Status')
d Hdr_Col_D 35a inz('AX Part No')
d Hdr_Col_E 35a inz('Vendor - Holly ADD')
d Hdr_Col_F 35a inz('lbs/ft conversion -
Holly')
d Hdr_Col_G 35a inz('lbs/pc (if pc is 10.5ft)')
d Hdr_Col_H 35a inz('inches per piece')
d item 35a dim(58)
overlay(dsHeader_Columns:1)

Then reference it as follows:

if StrVal <> %trim(dsHeader_Columns.item(Header_Column));


Darryl, if you don't ever need to reference the Hdr_Col_x subfields by name, an alternative is to just use an ordinary array with compile-time data to set the initialization values.

d dsHeader_Columns...
d s 35a dim(58) ctdata

if StrVal <> %trim(dsHeader_Columns(Header_Column));

**ctdata dsHeader_Columns
Row_Number
Zero Part Number
Status
AX Part No
Vendor - Holly ADD
lbs/ft conversion - Holly
lbs/pc (if pc is 10.5ft)
inches per piece

If you want the visual cue of A B C etc, you could code two "alternate" arrays to receive the compile-time data. The Labels array would get the first two characters of the ctdata and the Columns array would get the rest.

d dsHeader_Labels...
d s 2a dim(58) ctdata
d dsHeader_Columns...
d s 35a dim(58)
d alt(dsHeader_Labels)

if StrVal <> %trim(dsHeader_Columns(Header_Column));

**ctdata dsHeader_Labels
A Row_Number
B Zero Part Number
C Status
D AX Part No
E Vendor - Holly ADD
F lbs/ft conversion - Holly
G lbs/pc (if pc is 10.5ft)
H inches per piece

Barbara


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.