I tried that Booth (below)...  got this in the compile -
000229   dcl-s myCust    packed( 6:0) inz(39356) ;  
000238  
000261 d RecordDS      e ds                  extname(XRCL01)  
000262 d                                     like(XRID) overlay(RecordDS)  
 
======>                                      aaaa       bbbbbbb  
*RNF3501 20 a      000262  Keyword is not allowed for a data-structure 
definition;
                           keyword is ignored.  
*RNF3501 20 b      000262  Keyword is not allowed for a data-structure 
definition;
                           keyword is ignored.  
000263 d                                     like(XRCUST) overlay(*next)   
 
======>                                      aaaa         bbbbbbb  
*RNF3501 20 a      000263  Keyword is not allowed for a data-structure 
definition;
                           keyword is ignored.  
*RNF3501 20 b      000263  Keyword is not allowed for a data-structure 
definition;
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 RecordDS      e ds                  extname(XRCL01)
     d                                     like(XRID) overlay(RecordDS)
     d                                     like(XRCUST) overlay(*next)
     d                                     like(XRSHT)  overlay(*next)
     d                                     like(XRCRED) overlay(*next)
     d                                     like(XRLSTM) overlay(*next)
     d                                     overlay(RecordDS: *next)
     d  LabelName                      8   dim(3) overlay(RecordDS: *next)
       chain 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.
As an Amazon Associate we earn from qualifying purchases.
	
 
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.