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
Define static linking and dynamic linking.
how do you reference the printer file formats from cobol programs
Difference between cobol and cobol-ii?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is redefines clause in COBOL?
What is the LINKAGE SECTION used in COBOL?
how do you reference the ksds vsam file formats from cobol programs
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is difference between static and dynamic call in cobol?
What is the compute verb? How is it used?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between structured cobol programming and object alternativelyiented cobol?