View previous topic :: View next topic |
Author |
Message |
kirank Beginner
Joined: 21 Apr 2004 Posts: 61 Topics: 33 Location: hyderabad
|
Posted: Mon Sep 20, 2004 3:42 am Post subject: computational clauses |
|
|
Hello Sir,
Could you explain how to use computational clauses in cobol db2 programs.
I'm writing a cobol db2 program. I've already created a table with eno,esal with samllint datatype. And in my program , i've used comp,comp-3 with sign.
when i'm trying to insert the values into the table the values are not inserting properly. it is taking some other values like 11010 etc.
can u pls explain what is exact problem?
thanx
kiran. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Mon Sep 20, 2004 6:37 am Post subject: |
|
|
kiran,
A column defined as SMALLINT in DB2 is equivalent to S9(04) COMP. Please run the DCLGEN to get the equivalent cobol declarations for the DB2 column declarations.
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|