How to declare Numeric data



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to declare Numeric data

Postby munni_03 » Wed Aug 20, 2008 3:33 pm

1 234 567 890,12 how to declare this numeric data in cobol..exactly it should reflect like this only including spaces.
munni_03
 
Posts: 4
Joined: Tue Aug 19, 2008 5:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to declare Numeric data

 

Re: How to declare Numeric data

Postby dick scherrer » Thu Aug 21, 2008 12:42 am

Hello,

This "1 234 567 890,12" is not numeric data. . . It is a string that happens to contain some numbers in it along with some spaces and a comma.

exactly it should reflect like this only including spaces
Please explain what this is asking/providing. It is not at all clear.

Maybe if you explain what you want to accomplish, someone can make a suggestion.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post