COMP?

Answers were Sorted based on User's Feedback



COMP?..

Answer / neeraj

comp,comp-4 both are same used for the binary
representation of the data fields.
Size of memory allocated will be based on
If 1-4 2 bytes
5-9 4 bytes
10-18 8 bytes

Pic clause is attached with COMP data types

Is This Answer Correct ?    2 Yes 0 No

COMP?..

Answer / vampire

comp had boundaries

1-4 halfword-2bytes-16bites-4nibbles
5-9 fullword-4bytes-32bites-8nibbles
10-18 doubleword-8bytes-64bites-16nibbles

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

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  


How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.

5 Answers  


What is Alternate Index ? How is it different from regular index ?

2 Answers  


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  






Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

0 Answers  


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


what are the steps to sort in a cobol program?

2 Answers   Patni,


What are the two search techniques ?

2 Answers   iGate,


What is the local-storage section?

0 Answers  


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


Categories