View previous topic :: View next topic
|
Author |
Message |
rammraju
New User
Joined: 05 Mar 2005 Posts: 65 Location: Hyderabad
|
|
|
|
Hi,
I have a field queried from database, its datatype is DECIMAL(9,0). Now i have to use this field in a COBOL program. Can please someone let me know which data type should i use in cobol.
Thanks in advance |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Isn't that packed decimal, 9 digits, none behind the decimal?
pic s9(9) comp-3? |
|
Back to top |
|
|
divya_maddi
New User
Joined: 03 Nov 2005 Posts: 33
|
|
|
|
That is right!! |
|
Back to top |
|
|
Suryanarayana.tadala
New User
Joined: 03 Nov 2005 Posts: 43 Location: St.Louis
|
|
|
|
Cool Response |
|
Back to top |
|
|
rakesh.in.in
New User
Joined: 01 Mar 2007 Posts: 5 Location: Pune
|
|
|
|
Correct Way to define In cobol is:
01 a pic9(9) comp-3. |
|
Back to top |
|
|
|