Cobol Question:

Download Job Interview Questions and Answers PDF

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

Cobol Interview Question
Cobol Interview Question

Answer:

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.

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
What are the different forms of EVALUATE statement?What is the difference between Structured COBOL Programming and Object Alternativelyiented COBOL?