what is the difference between Normal vaiable and comp
variable.

Answer Posted / suman agrawal

Using comp, the value will be stored in binary format.
The allocation in number of bytes is based on the number of
digit the variable use:

No. of digits Bytes
1-4 2 bytes
5-9 4 bytes
10-18 8 bytes

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


how do you reference the rrds file formats from cobol programs

802


Explain about different table spaces.

650


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1616


How do we get current date from system with century in COBOL?

807






Difference between cobol and cobol-ii?

710


What are the cobol coding sheets?

666


What is comp-1 and comp-2?

765


What is amode(24)?

684


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


What is the difference between structured cobol programming and object alternativelyiented cobol?

757


In COBOL programming, what is PERFORM? What is VARYING?

672


What guidelines should be followed to write a structured cobol prgm?

673


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


What the difference is between continue and next sentence?

665