What is difference between s9(04) comp and 9(04) comp? (Cobol comp with s and without s)

Questions by mannurusrinivasulareddy   answers by mannurusrinivasulareddy

Showing Answers 1 - 6 of 6 Answers


  • Oct 2nd, 2012

First one represents binary and second one numeric.

  Was this answer useful?  Yes

Ankit Sood

  • Oct 2nd, 2012

S signifies Signed variable. So S9(04)comp will have value -/+ 2 (Binary) whereas 9(04)comp will have value as 2 (Numeric)

  Was this answer useful?  Yes

Both are binary, please see the below link for more info:


9(4) will always be treated as a positive number and s9(4) may be either positive or negative.

  Was this answer useful?  Yes

Chinnu Ann Jose

  • Aug 21st, 2013

first one is binary and second one is numeric

  Was this answer useful?  Yes

Pradip Wagh

  • Apr 17th, 2014

First is Binary storage and Second one is just Numeric storage.
Also, First will take 2 bytes of storage whereas Second one requires 4 Bytes of memory.

Correct me if I am wrong.!!!

  Was this answer useful?  Yes


  • Jul 24th, 2014

Both are binary values. One can have + or - values while other can only have + values

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions