Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: How wide in bytes is PIC S9(12) -- 12 or 13 bytes ?

$
0
0

Yes, Moto - it's 12.

Cobol has a "length of" operator you can use to find the length of any field - see below. For group items, the Editor tooltips also include the length of the item - though unfortunately not for elementary items like pic s9(12).  

      working-storage section.

      01   a    pic s9(12).

      procedure division.

          display length a


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>