Why we are using comp and comp-3 in real time projects?

Answers were Sorted based on User's Feedback



Why we are using comp and comp-3 in real time projects?..

Answer / harsha

Mostly COMP is used for counter fields or for Subscripts.
COMP-3 is mostly used in all sort of arithmatic
calculations.

Is This Answer Correct ?    9 Yes 1 No

Why we are using comp and comp-3 in real time projects?..

Answer / adarsh

to reduce memory usage

Is This Answer Correct ?    8 Yes 2 No

Why we are using comp and comp-3 in real time projects?..

Answer / wing

Processing speed

Is This Answer Correct ?    1 Yes 2 No

Why we are using comp and comp-3 in real time projects?..

Answer / vish

In DB2 SQL copybooks

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

what is the use of filler in cobol programing?

4 Answers   MAT,


01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?

6 Answers   L&T,


how do you reference the ksds vsam file formats from cobol programs

0 Answers  


How can you add a particular field in copybook?

2 Answers   L&T,


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,






input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.

6 Answers  


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


i want to store 20 digits . h will u do it in cobol ?

4 Answers   TCS,


1.What is the default print format in cobol?

5 Answers   HSBC,


Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


Categories