× 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 frecuently get this message:

Ha intentado hacer referencia total o parcialmente a un objeto ------- MCH3402
inexistente.
Anomalía interna en el compilador o subrutina. --------------- RNX9998
La llamada a IMPREL ha finalizado con error (C G D F). --------- RNQ0202


IMPREL is a small procedure that is in a service program, most of the time works Ok but sometimes gives that message

Here is the source code,  I have v5.2 (spanish)
____________________________________________________________________________________________________

0001.00 Haut(*use) option(*srcstmt)  alwnull(*no) datfmt(*iso)
0002.00 H nomain
0003.00 Fasie_rel  IF   E           K DISK    extfile('ED/ASIE_REL')
0004.00  /copy IMPREL
0005.00 P imprel          b                   export
0006.00 D IMPREL          PI            11p 0
0007.00 D na                                  like(nasie) const
0008.00 D fa                                  like(fasie) const
0009.00 D la                                  like(lasie) const
0010.00
0011.00 D pagado          s                   Like(impr)
0012.00 D k               s              5  0
0013.00
0014.00  /free
0015.00     clear pagado;
0016.00     setll krel asie_rel  ;
0017.00     for k = 1 to 500;
0018.00       reade krel asie_rel  ;
0019.00       if %eof(asie_rel  );
0020.00         leave;
0021.00       endif;
0022.00       pagado += impr;
0023.00     endfor;
0024.00
0025.00   return pagado;
0026.00  /end-free
0027.00
0028.00
0029.00 C     krel          klist
0030.00 C                   kfld                    fa
0031.00 C                   kfld                    na
0032.00 C                   kfld                    la
0033.00 P                 e
____________________________________________________________________________

This program could be made easily in SQL, but the file "asie_rel" is alogical with two record formats.


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.