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

what is the coding difference between COBOL and CICS.

8 Answers   Cap Gemini,


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


What are the functions like c or c++ in cobol?

2 Answers  


How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)

3 Answers   IBM,


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,






can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

2 Answers   L&T,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


can we write paragraph in area B .....

4 Answers   L&T,


Name the sections present in data division.

0 Answers  


How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?

6 Answers  


What is a scope terminator? Give examples.

2 Answers  


Categories