What is the difference between comp and comp-3 usage?
Explain other COBOL usage?s.
Answer Posted / elite group
Comp -- binary form
Comp-3 Packed Decimal
Usages are:
Display: Default it occupies the number of bytes is equal
to the size of the data-item
Comp -- Binary Number of bytes is equal to the size of the
data-item
Comp-1 -- 4-Bytes no pic clause is required
Comp-2 -- 8-byted no pic caluse is required, Double
precision
Comp-3 -- Packed Decimal Number of bytes is
(n+1)/2 -- if n is odd
(n/2)+1 -- if n is even
Comp-4 --- Same as Comp
| Is This Answer Correct ? | 57 Yes | 14 No |
Post New Answer View All Answers
How can you get the ksds file records into your cobol program?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Write down the divisions of cobol program?
How to remove 2 duplicate records and copy only one using job control language?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Name some of the examples of COBOl 11?
what is search and searchall?what is the diffrence between them?give an best example?
Name the divisions, which are available in a cobol program?
What is the difference between binary search and sequential search?
What are declaratives and what are their uses in cobol?
What is the difference between external and global variables in COBOL?
How to know whether the module is dynamical or statistical?
Explain how to differentiate call by context by comparing it to other calls?
What is static and dynamic call in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?