MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COMP-3 Equivalent in C++ program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Sivasankari
Beginner


Joined: 16 Feb 2005
Posts: 5
Topics: 4

PostPosted: Mon Nov 14, 2005 1:21 am    Post subject: COMP-3 Equivalent in C++ program Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon Nov 14, 2005 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
aquarian
Beginner


Joined: 28 Sep 2005
Posts: 66
Topics: 17
Location: Mars

PostPosted: Mon Nov 14, 2005 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Sivasankari
Beginner


Joined: 16 Feb 2005
Posts: 5
Topics: 4

PostPosted: Thu Nov 17, 2005 7:53 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for ur help. I was able to carry out the same, using IBinaryCodedDecimal Class.


Cheers,
Sivasankari.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group