Pumpkin wrote:how to identify how many bytes numeric editde occupy(usage is display)?
To answer the question yourself for next time, you should be able to look at the "data map" on a Cobol compile output listing. This will tell you how long each data item is.
Pumpkin wrote:for example,ZZ,ZZZ.99 it counts 7bytes or 9byte? does the "," and "." each occupy 1 byte?
And ZZ,ZZZ.99DB,does DB or CR occupy each 2 bytes?
Yes, the "," and "." each occupy one byte, so the field is 9 bytes long.
Yes, the DB or CR each occupy 2 bytes.