Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space?
Submitted by: AdministratorHere 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
Submitted by: Administrator
Read Online Cobol Job Interview Questions And Answers
Top Cobol Questions
☺ | What divisions, sections and paragraphs are mandatory for a COBOL program? |
☺ | How is sign stored in Packed Decimal fields and Zoned Decimal fields? |
☺ | What the difference is between CONTINUE and NEXT SENTENCE ? |
☺ | Give some advantages of REDEFINES clause? |
☺ | How do you code COBOL to access a parameter that has been defined in JCL? And do you code the PARM parameter on the EXEC line in JCL? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |