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 to remove 2 duplicate records and copy only one using job control language?
What are the different rules to perform a Search?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i need a small 3d program using inline and outline.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the problem of ordered sequential files access?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Explain the configuration section of a cobol program with examples of syntax.
what is the use of outrecord?
Write a program to explain size error.
What are different data types in cobol?
What are the cobol coding sheets?
Why did you choose to work with ibm mainframe cobol programming?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What are the different rules of SORT operation?