Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS
by Adolph san » Thu Jul 01, 2010 1:08 am
For Binary (COMP) items, does the Sign representation occupy storage?
For example,
05 A PIC S9(3) COMP.
How many bytes does it occupy?
-
Adolph san
-
- Posts: 4
- Joined: Tue Jan 26, 2010 10:20 pm
- Has thanked: 0 time
- Been thanked: 0 time
by Robert Sample » Thu Jul 01, 2010 1:26 am
2 bytes.
The sign is the first bit of the memory location (zero means positive, one means negative).
-
Robert Sample
- Global moderator
-
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Location: Dubuque, Iowa, USA
- Has thanked: 1 time
- Been thanked: 279 times
Return to IBM Cobol
-
- Comp internal representation
by coollearner » Sat Jun 05, 2010 6:00 pm
- 2 Replies
- 2474 Views
- Last post by dick scherrer
Sat Jun 05, 2010 8:13 pm
-
- COMP-1 And Comp-2 representation
by coollearner » Sat Jun 05, 2010 6:40 pm
- 2 Replies
- 4624 Views
- Last post by Robert Sample
Sat Jun 05, 2010 8:01 pm
-
- Big Comp -3 field to small Comp - 3 field with Sign
by zhinghur » Thu Jul 12, 2012 8:13 am
- 5 Replies
- 3764 Views
- Last post by Robert Sample
Mon Jul 16, 2012 11:27 pm
-
- how to the a binary field PIC S9(4) COMP.
by helen2000 » Tue Apr 11, 2017 9:02 pm
- 10 Replies
- 10606 Views
- Last post by helen2000
Sat Apr 22, 2017 3:28 am
-
- Cobol tables - moving items from one table into another one
by dbhasty » Fri May 06, 2011 11:40 pm
- 2 Replies
- 12497 Views
- Last post by BillyBoyo
Sat May 07, 2011 5:16 am