What is COMP-1? COMP-2?




Answers were Sorted based on User's Feedback



What is COMP-1? COMP-2?..

Answer / mahathiaz

COMP-1 - Single precision floating point. Uses 4 bytes.
COMP-2 - Double precision floating point. Uses 8 bytes

Is This Answer Correct ?    18 Yes 0 No

What is COMP-1? COMP-2?..

Answer / karan

comp-1 is single floatig item where as
comp-2 is double floating item.

comp-1,comp-2 we are not using pic clause.

Is This Answer Correct ?    5 Yes 0 No

What is COMP-1? COMP-2?..

Answer / purushothr

comp 1:single precision floating point//4 bytes
comp 2:double precision floating point//8 bytes

Is This Answer Correct ?    2 Yes 0 No



Post New Answer



More COBOL Interview Questions

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.

0 Answers   IBM,


is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...

2 Answers   TCS, PNP, ITC Indian Tobacco Company,


ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  






I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?

1 Answers   Mphasis,


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


What is the difference between comp and comp-3 usage?

0 Answers  


How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?

2 Answers  


How to retrive the 9th records out of ten records using the cobol program ?

3 Answers   UST,


DATAONLY, MAPONLY functionality?

1 Answers   IBM,


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,






Categories