Cobol Comp-3



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

Cobol Comp-3

Postby reebahs » Mon Dec 20, 2010 8:17 pm

Could any one tel me how the following value stored in memory ?
03 Q pic s9(7)v9(2) comp-3 value -1234567.12.
reebahs
 
Posts: 28
Joined: Thu Dec 09, 2010 1:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol Comp-3

Postby Robert Sample » Mon Dec 20, 2010 8:21 pm

Rather than expecting someone to spoon-feed this information, why not look up the answer in the COBOL Language Reference manual, easily found at the IBM web site http://www.ibm.com ? You will then be able to find your own answers, which is a very valuable skill to acquire.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Cobol Comp-3

Postby NicC » Tue Dec 21, 2010 12:35 am

You could also write a little program to write this value/format to a dataset and browse the dataset.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post