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



Hi Justin,

Looks like a typo on the DS definition, but assuming it's supposed to be named LFDS, try

 chain key REC01 LFDS;

If you really want to chain to the filename, then you have to define both record formats within a single data structure, e.g.

dcl-ds LFDS inz;
   dcl-ds LF_REC01 likeRec(REC01 :*input) pos(1);
   dcl-ds LF_REC02 likeRec(REC02 :*input) pos(1);


--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx
pdow@xxxxxxxxxxxxxx /

On 6/12/2023 2:38 PM, Justin Taylor wrote:
I've defined a multi-format LF locally within a procedure, but I can't get
the result data structure defined properly. The LF combines two PFs that
have identical column layouts but different record names.

Any suggestions?


Dcl-f LF disk usage(*input) keyed ;

Dcl-ds lLfDs likeRec(REC01 :*input) inz ;


Chain key LF lLfDs;
RNF7595: The result data structure LFDS does not include a subfield in
position 1 for record format REC02.
RNF7595: The result data structure LFDS does not include a subfield in
position 1 for record format REC01.

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.