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
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the usage of comp fields in cobol?
Which is not true about evaluate statement
What is a report item?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What are the different types of condition in cobol and write their forms.
What are the different rules of SORT operation?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
) what is the difference between AID and HANDLE AID?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is a SSRANGE and NOSSRANGE?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?