Question

  Asked: Feb 26 2008   2:45 PM GMT
  Asked by: Willhud69


CGI Program Problem - Data Decimal Error


CGI, V5R3, RPGILE

We have a set of programs that were written a couple years ago. We recently recompiled one and we started getting the error RNQ0907 decimal-data error. There were no changes to the actual code in the program or modules that are bound to it. We restored the object from tape and it works fine, but anytime we compile the program (there are actually several we have experimented with) it stops working with this same error. We even went back and restored a year old source code to make sure there had not been any non-compiled changes in the source that was on the system.

The error only happens the first time a user access that part of the web site. You can go to WRKACTJOB and answer the message on the AS/400 Server instance with a 'C' and then refresh the web page and try it again and it will work fine.

The only thing we can think of is something that changed when we moved from V5R1 to V5R3, but I am not sure what would impact the compile and binding processes.

We then setup a different server instance and copied all the backed up source and objects to a new CGI library. We tested the objects and everything worked fine. We then went through and simply recompiled all the pgms for this web app. Several of the pages work just fine, but several others have this error.

Any help with this is greatly appreciated. We need to make some changes to these programs, but at this point are scared to even compile them.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Hi,

Maybe you could try experimenting with the FIXNBR paprameter on the compile options :-

FIXNBR(*ZONED) or FIXNBR(*INPUTPACKED)

It's possible that someone changed the command defaults on your previous OS release so that you didn't need to specify this every time you compile.

Hope this helps,

Martin Gilbert.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development and AS/400.

Looking for relevant Development Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register