Just posting exactly what worked using Jeff's pointer idea -
(had to add *update to file spec to get program to 'bring-in' the

ctl-opt option(*srcstmt:*nodebugio:*noshowcpy) dftactgrp(*no)

dcl-f XRCL01 usage(*input:*update ) keyed ;
// File layout for xrcl01
// XRCUST customer number (key)
// XRLSTM last maint date
// XRLA01 label name 1 char(8)
// XRLA02 label name 2 char(8)
// XRLA03 label name 3 char(8)
// XRSET1 label 1 sets dec(2:0)
// XRSET2 label 2 sets dec(2:0)
// XRSET1 label 3 sets dec(2:0)
// ... all array fields all contiguous

dcl-s mycount int( 5:0) ;
dcl-s myCust packed( 6:0) inz(39356) ;

d XrcDs e ds extname(XRCL01)

d LblName s 8a dim(10) based(XRLA01_ptr)
d LblSets s 2 0 dim(10) based(XRSET1_ptr)
d LblVarOptNbr s 5 0 dim(10) based(XROP01_ptr)
d LblReqOpt s 1a dim(10) based(XRRO01_ptr)
d LblMaxSize s 2 0 dim(10) based(XRSZ01_ptr)
d XRLA01_ptr s * inz(%addr(XRLA01))
d XRSET1_ptr s * inz(%addr(XRSET1))
d XROP01_ptr s * inz(%addr(XROP01))
d XRRO01_ptr s * inz(%addr(XRRO01))
d XRSZ01_ptr s * inz(%addr(XRSZ01))

chain(n) myCust XRCL01 ;

if not %found() ;
mycount += 1 ;
endif ;

*inlr = *on;
return ;

update XRCREC ; // never happens, insures fields are 'brought-in'
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.

This thread ...


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

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