What is the difference between comp and comp-3 usage?
Explain other COBOL usage?s.
Answer Posted / cauvitha
comp - used for binary representation. To make the calculations faster. it can have S and 9.
Memory usage is
s9(1)-s9(4) - 2bytes
s9(5)-s9(9) - 4bytes
s9(10)-s9(18) - 8bytes
===
comp-3 - used to store packed decimal values. Stores comparitively more values than comp. It can have S, 9, V.
Memory usage is
n/2 + 1 (Even)
n+1/2 (odd)
| Is This Answer Correct ? | 24 Yes | 4 No |
Post New Answer View All Answers
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is difference between cobol and cobol/400
Why occurs cannot be used in 01 level in COBOL?
i need a small 3d program using inline and outline.
Define cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Write a cobol program making use of the redefine clause.
Mention the guidelines to write a structured cobol program?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the local-storage section?
how can i see junk values in dclgen or in hostvariable of comp ?