can anyone explain me the concept of COMP-4 PLEASE??

Answers were Sorted based on User's Feedback



can anyone explain me the concept of COMP-4 PLEASE??..

Answer / sravani

comp& comp-4 are same. binary representation of data item. memory as like this
s9(1)-s9(4): half word that is 2 bytes
s9(5)-s9(9): full word that is 4 bytes
s9(10)-s9(18): double word that is 8bytes

Is This Answer Correct ?    6 Yes 0 No

can anyone explain me the concept of COMP-4 PLEASE??..

Answer / kannan

its similar to comp

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


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

3 Answers  


What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,






How do get the result of your program directly on your pc?

0 Answers   UST,


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

0 Answers  


level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


What guidelines should be followed to write a structured Cobol program?

1 Answers  


what are the working storage fields in BMS macro?

2 Answers   IBM,


Categories