hi. This is Ram.i have one doubt.why can't we display comp-3
variables directly? let me answer quickly plez........



hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answe..

Answer / yuvaevergreen

Hi ram,
Comp-3 variables are generally used for high storage
efficiency. They are stored in packed decimal format
internally.So, display is possible only when the packed
decimal item is moved to a numeric edited item.

Is This Answer Correct ?    21 Yes 0 No

Post New Answer

More COBOL Interview Questions

What does the initialize statement do ?

2 Answers  


If you were passing a table via linkage, which is preferable - a subscript or an index?

3 Answers   TCS,


What is the difference between Global and External Variables?

0 Answers  


How is sign stored in a COMP field ?

3 Answers   Accenture,


what is index and how to use two tables using index?

1 Answers  






Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???

5 Answers   IBM,


What is the different between index and subscript?

3 Answers  


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


Difference between array and sub-script ?

0 Answers   HCL,


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


Categories