Re: Acucobol and DB2



On Feb 27, 3:33 pm, "HeyBub" <heybubNOS...@xxxxxxxxx> wrote:
tomsta...@xxxxxxxxx wrote:
Hi,
Having a problem with Db2 and Acucobol, Selecting numeric values.

The same select works fine with VisualAge cobol and DB2 and Acucobol
and Oracle.

I can fix the problem by changing the COMP values to COMP-3, but I
cant change the entire application.

Here is an example:

The account number in the database is 20012
The acucobol/db2(udb) select returns: 961413120

the sqlcode is zero and the text fields are returned fine.

I can get 961413120 to map to 20025. Are you sure about the account number?

961413120(10) => 394E0000(16), 4E39(16) => 20025(10)


He probably should be using PIC S9(9) COMP-5 or whatever is accucobol
for native long integer. Your calcs show it is probably a byte
ordering issue.


.



Relevant Pages

  • Re: Acucobol and DB2
    ... The same select works fine with VisualAge cobol and DB2 and Acucobol ... and Oracle. ... Are you sure about the account number? ...
    (comp.lang.cobol)
  • Acucobol and DB2
    ... The same select works fine with VisualAge cobol and DB2 and Acucobol ... and Oracle. ... I can fix the problem by changing the COMP values to COMP-3, ...
    (comp.lang.cobol)
  • Re: Acucobol and DB2
    ... Having a problem with Db2 and Acucobol, ... and Oracle. ... cant change the entire application. ... You might be able to use the CASE function as described in the DB2 ...
    (comp.lang.cobol)
  • Re: How to determine database market share?
    ... with your meaningful contributions to to .oracle lists over the time ... It was not "Something about measuring database market penetration by ... > On the DB2 side, many of the people who are DB2 DBA's have been doing ... > On the SQL Server side, there are 2 questions involved, how many real ...
    (comp.databases.oracle.server)
  • Re: Migrating to Oracle on Windows
    ... I am looking into migrating a database from DB2 on z/OS to Oracle ... essentially no excuse for moving to Windows, ... The example I gave of migrating from DB2 on z/OS to Oracle on Windows ...
    (comp.databases.oracle.server)