Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space?

Submitted by: Administrator
Here s9(4)comp is small integer, so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here in s9(4) comp-3 as one word is equal to 12 byte.4 words equal to 2 bytes and sign will occupy 12 byte so totally it will occupy 3 bytes.
Submitted by: Administrator

Read Online Cobol Job Interview Questions And Answers