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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Which is not true about evaluate statement
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between goback, stop run and exit program in cobol?
What are the rules of the move verb?
What is perform what is varying?
What guidelines should be followed to write a structured cobol prgm?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
In which area will you utilize 88 level items in cobol?
What is a report item?
Write a cobol program making use of the redefine clause.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are all the divisions of a COBOL program?
Explain the configuration section of a cobol program with examples of syntax.
Can we redefine the field of x(200) to less than 200?