what is the difference between Normal vaiable and comp
variable.

Answer Posted / naveen kumar.s

The value assigned to comp variable is stored in binary
format.The memeory allocation is also different.
For example,
77 A pic 9(8).
77 B Pic 9(8) comp.

Here,'A' occupies 8 bytes.whereas,'B' occupies 4 bytes only.

No.of Digits Bytes occupied

1-5 2
5-11 4
12-18 8

Is This Answer Correct ?    9 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why occurs cannot be used in 01 level in COBOL?

706


Explain how you can characterize tables in cobol?

634


What is the Purpose of Pointer in the string?

632


What kind of error is trapped by on size error option?

730


Can you please let me know the centre name of INS certification in Kolkata.

1707






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

1578


Write a program that uses move corresponding.

664


What is link edit in cobol?

727


i need a small 3d program using inline and outline.

1629


What are various search techniques in cobol? Explain.

638


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2094


What is Pic 9v99 Indicates in COBOL?

713


What do you understand by psb and acb?

659


What are literals?

622


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8595