Posted by Grant Foraker on September 06, 2005 at 14:02:11:
I been cleaning up all the IMAGE files for a customer that I aquired post Y2K (when I deimaged all my other customers). Since I like clean USE files, I also converted all the fields that should have been expressions. When the report ran for the first time, since the conversion, I received the following error from Reporter ...
=====================================================================
Report Preparation in progress - $REBATE8 on REP           #FILES is on REP
  PRINT VENDOR;VNAME;NAME;ITEM.NUMBER;DESCRIPTION;
        DATE.SHIPPED;ORDER;UNIT.OF.STOCK;STOCK.QTY.SHP
  TOTAL STOCK.QTY.SHP
  BREAK VENDOR,N;ITEM.NUMBER
  RUN QREPORTS,,'$REBATE9,REP'
 Compilation errors encountered
 TAB to display MTB error log
     26 ~REBATE8IBS  0000      USE "~RPGUSE"
     72 ~REBATE8IBS  019D PRINT001:FORMAT _
     72 ~REBATE8IBS   03  ********        _
    123 ~REBATE8IBS  00CA         USE "~RPGUSE",,20100
    166 ~REBATE8IBS  0488         PRINT(PRINTER,PRINT001)  &  ~LINCNT=~LINCNT+1
    166 ~REBATE8IBS   18  ******************************   &  ~LINCNT=~LINCNT+1
====================================================================
It took a lot of messing about to determine that Reporter didn't like the VNAME expression (a short version of VENDOR.NAME gotten via a Link). I even added a DEFINE to avoid any nesting problems. Finally, I changed VNAME to VEND.NAME and the problem went away. The only hint was, while tweaking, the error came up for VNAME1$ instead of PRINT001.