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



I received the following severity 30 error message when attempting to verify
an RPG IV free format program which uses the %kds built-in-function to chain
to a logical file with multiple key fields. The data structure was set up as
follows:

  FLFCHDETL  uf a e           k disk   
  D DetlKey         DS                  likerec(RFCHDETL : *Key)
/free
          DetlKey.CHEMP = CHEMP;
          DetlKey.CHDATE = CHDATE;
          DetlKey.CHTIME = CHTIME;
          Chain %Kds(DetlKey)LFCHDETL;     
/end-free


RNF7071: Number of KFLDs in KLIST is greater than number of key fields in
file.

As you can see, it is quite impossible for the data structure to have a
different number of key fields than the file when specified in this manner.
In fact, when you actually compile the program you get no errors. IIRC, I am
running WDSc version 5.1.0.2   Anyone else run into this one?


> Allied International Credit Corp.
> Graham Cromar
> Senior Programmer/Analyst
> 16635 Yonge Street, Suite 26, Newmarket,  Ontario, L3X 1V6
> Tel: (905) 944-4715, Fax: (905) 470-8155
> Email: graham.cromar@xxxxxxxxxxx
> http://www.aiccorp.com
> 
This email message and any attachments are intended only for the use of the
addressee named above and may contain information that is privileged and
confidential.  If you are not the intended recipient, any dissemination,
distribution, copying, or the taking of any action in reliance on the
contents of this e-mail or information is strictly prohibited.  If you
received this email message in error, please immediately notify the sender
by replying to this email message or by telephone. Thank you.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.