What is difference between com and com3? Eg. s9(4) so what
is the memory it will occupy com and com3.

Answer Posted / rekha

comp | comp-3

___________________________|__________________________________1>it
will store the data | it will store the data in PACKED in
BINARY FORMAT | DECIMAL FORMAT
2>s9(1)-s9(4) --> 2byts | s9(n)
s9(5)-s9(9) --> 4bytes | if n --> even occupies (n/2)+1b
s9(10-s9(18) -->8bytes | if n --> odd occupies (n+1)/2b
3> it will occupies the | it will occupy less memory
memory based on the range |
____________________________________________________________ex
- s9(4) occupies 2bytes for comp
s9(4) occupies 3bytes for comp-3

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

710


In which area will you utilize 88 level items in cobol?

722


What is a report item?

741


How do you reference the fixed block file formats from cobol programs

703


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588






What is a scope terminator give example?

655


What is the difference between Call and a Link?

696


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


What is the difference between goback, stop run and exit program in cobol?

924


What is the difference between Global and External Variables?

666


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5375


What is the difference between binary search and sequential search?

638


Have you used comp and comp-3 in your project? And how?

2008


What are the different data types in cobol?

790


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

716