gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Size of comp-3 (packed) fields.


From: John R. Culleton
Subject: [open-cobol-list] Size of comp-3 (packed) fields.
Date: Mon, 3 Jul 2006 13:45:47 -0400
User-agent: KMail/1.9.3

On bigger computers and compilers one can assume that a field
like
pic s9(7)v99 comp-3

will occupy 5 bytes, in other words the number of digits plus one
for the sign, rounded up to an even number and divided by 2 will
give the bytes required. Is this true however of OC? And what
about comp fields, say pic s9(3) comp?

I want to put my detailed fiile description in working storage,
and then just use
   01 filrec.
      05 filler pic x(??).

for the fd.   

But I need to count the ?? accurately. 
-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]