Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?



Why do we use COMP-3 variables for computation, when we know that they are non displayable fields an..

Answer / raj

COMP-3 fields take less memory allocation and effective in computation.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


How much salary you are expecting? If they ask in an interview, what we have to tell?

6 Answers   Tech Mahindra, Wipro,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,






which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

0 Answers  


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


how to access the file from prodution from changeman tool and to submit a file to production

1 Answers   IBM,


can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)

13 Answers   CTS,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


hw to create 3 dimensional array & hw to access it?

1 Answers  


I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?

1 Answers   CTS, HCL,


Categories