you have to use one of the usage comp-? to indicate single and double percision floating point. I don't use them in banking and insurance so you guys will have to go to the manual.
but i want to know that if there do not exist any such field(COMP 1 or 2) in the Cobol Code and i want to know whether these can be used in the code then how can i?
Is there any internal routine in COBOL to convert COMP-2 variables before processing specially when the lenth of the defined varaible is greater than 15.
Joined: 23 Nov 2006 Posts: 8733 Location: 221 B Baker St
Hello,
Quote:
Is there any internal routine in COBOL to convert COMP-2 variables
What would you want to convert them to? Keep in mind that floating point is little used in cobol as floating point is typically not used for mainframe business (checkbook/accounting/inventory) applications.
I suggest you spend some time in the COBOL documentation (available via the "IBM Manuals" link at the top of the web page. There are both Language Reference and Programmers Guides available for multiple versions of cobol.
When you find something in the documentation that is not clear, post it here and your question concerning what you found. Someone should be able to help clarify for you.