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
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Write a program that uses move corresponding.
How to print 10 to 1 if the input have only 10 digit number?
What are literals?
Can we redefine the field of x(200) to less than 200?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
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
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
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is report-item in COBOL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is link edit in cobol?
How many bytes S(8) comp field occupy and its maximum value?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?