Page 1 of 1

Cobol Comp-3

PostPosted: Mon Dec 20, 2010 8:17 pm
by reebahs
Could any one tel me how the following value stored in memory ?
03 Q pic s9(7)v9(2) comp-3 value -1234567.12.

Re: Cobol Comp-3

PostPosted: Mon Dec 20, 2010 8:21 pm
by Robert Sample
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.

Re: Cobol Comp-3

PostPosted: Tue Dec 21, 2010 12:35 am
by NicC
You could also write a little program to write this value/format to a dataset and browse the dataset.