Why do we code S9(4) comp. Inspite of knowing comp-3 will occupy less space ?


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.



Explore posts in the same categories: Cobol Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • Why do we code S9(4) comp. Inspite of knowing comp-3 will occupy less space. ?
  • Here s9(4)comp is small integer ,so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here...
  • Why do we code S9(4) comp. Inspite of knowing comp-3 will occupy less space. ?
  • Here s9(4)comp is small integer ,so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here...
  • Why do we code s9 (4) comp In spite of knowing comp-3 will occupy less space ?
  • Here s9(4)comp is small integer, so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here...
  • What is the difference between COMP & COMP-3 ?
  • COMP is a binary storage format while COMP-3 is packed decimal format....
  • How do you define a variable of COMP-1 ? COMP-2 ?
  • No picture clause to be given. Example 01 WS-VAR USAGE COMP-1....
  • What is the difference between comp and comp-3 usage Explain other COBOL usage’s ?
  • Comp is a binary usage, while comp-3 indicates packed decimal. The other common usage’s are binary and display. ...
  • What is COMP-1 ? COMP-2 ?
  • COMP-1 - Single precision floating point. Uses 4 bytes. COMP-2 - Double precision floating point. Uses 8 bytes. ...
  • How many bytes does a S9(7) COMP-3 field occupy ?
  • Will take 4 bytes. Sign is stored as hex value in the last nibble. General formula is INT((n2) + 1)),...
  • How many bytes does a S9(7) COMP-3 field occupy ?
  • Will take 4 bytes. Sign is stored as hex value in the last nibble. General formula is INT((n/2) + 1)),...
  • What is COMP SYNC ?
  • Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT. For binary data items, the...

    Comments are closed.