Attempt at Sam_L idea


000240 dcl-ds LabelNameDs ;
000241 XRLA01 ;
======> aaaaaa
======> bbbbbb
*RNF3315 20 a 000241 The Name entry is already defined on a
Definition
Specification; defaults to blanks.
*RNF3438 30 b 000241 LIKE keyword is expected for field but not
found;
definition is ignored.
000242 XRLA02 ;
======> aaaaaa
======> bbbbbb
*RNF3315 20 a 000242 The Name entry is already defined on a
Definition
Specification; defaults to blanks.
*RNF3438 30 b 000242 LIKE keyword is expected for field but not
found;
definition is ignored.

Source -
ctl-opt option(*srcstmt:*nodebugio:*noshowcpy) dftactgrp(*no)
actgrp(*new);

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)

dcl-ds LabelNameDs ;
XRLA01 ;
XRLA02 ;
XRLA03 ;
LabelNames char(8) dim(3) overlay(LabelNameDS);
end-ds;

chain(n) myCust XRCL01 ;
if not %found() ;
mycount += 1 ;
endif ;

*inlr = *on;
return ;

update XRCREC ; // never happens, insures fields are 'brought-in'


<snip>
Ooops:

dcl-ds LabelNameDS ;
XRLA01 ;
XRLA02 ;
XRLA03 ;
LabelNames char(8) dim(3) overlay(LabelNameDS);
end-ds;

Sam
</snip>
<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 ...

Replies:

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

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