View previous topic :: View next topic |
Author |
Message |
Sivasankari Beginner
Joined: 16 Feb 2005 Posts: 5 Topics: 4
|
Posted: Mon Nov 14, 2005 1:21 am Post subject: COMP-3 Equivalent in C++ program |
|
|
Hi All,
I want to know the COMP-3 equivalent in C++ program. I m using zOS environment. As decimal data type is the data equivalent for the usage of packed decimal, when i tried including it in my program it throws me error at compilation. Further i came to know from the book C-C++ RUNTIME LIBRARY REFERENCE, that the decimal.h header file is not supported under z/OS C++ applications. May i know how can i handle COMP-3 variables in my C++ program. Thanks in Advance.
Cheers,
Siva. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12370 Topics: 75 Location: San Jose
|
Posted: Mon Nov 14, 2005 7:46 am Post subject: |
|
|
Sivasankari,
z/OS C supports fixed-point (packed) decimal as a native data type for use in business applications. The packed data type is similar to the COBOL data type COMP-3 or the PL/I data type FIXED DEC, with up to 31 digits of precision. The Application Support Class Library provides the Binary Coded Decimal Class for C++ programs.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
aquarian Beginner
Joined: 28 Sep 2005 Posts: 66 Topics: 17 Location: Mars
|
Posted: Mon Nov 14, 2005 11:34 am Post subject: |
|
|
hi Kolusu,
kolusu wrote: | Sivasankari,
. The Application Support Class Library provides the Binary Coded Decimal Class for C++ programs.
Kolusu |
may i know how to include the libraries of C++ and C in Z/os environement?and also i would like to know whether any of projects runing in C++ and Z/os environement. _________________ cheers,
Aquarian |
|
Back to top |
|
|
Sivasankari Beginner
Joined: 16 Feb 2005 Posts: 5 Topics: 4
|
Posted: Thu Nov 17, 2005 7:53 am Post subject: |
|
|
Hi Kolusu,
Thanks for ur help. I was able to carry out the same, using IBinaryCodedDecimal Class.
Cheers,
Sivasankari. |
|
Back to top |
|
|
|
|