|
From: | Jim Morcombe |
Subject: | [open-cobol-list] Field sizes for COMP. |
Date: | Fri Aug 26 00:49:29 2005 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) |
gl0005.cbl:27: record size too large 'GLTRANS-RECORD'I received this error message when I tried to compile a program containing a file with a record length of 512 bytes. I take it that the message is not complaining that I have exceeded some maximum record size, but that the fields in my record add up to more than the record length specified in my SELECT statement.
If this is the case, then I believe my COMP fields are taking up more room than under MicroFocus Cobol.
How many characters do COMP fields take up and do I have the option of changing this by specifying the COMP format?
I want PIC S9(15) COMP to take up 7 bytes, PIC 9(10) COMP to take up 5 bytes and PIC 9(4) COMP to take up 2 bytes.
Jim
[Prev in Thread] | Current Thread | [Next in Thread] |