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.



How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how ca..

Answer / shinoy sansilavose

if your variable always represents a value which is needed
for some mathematical calculations then you can define that
var as either a numeric one or as an alphanumeric one.

if your variable is specif for any city name or address you
can declare it as alphabetic or alphanumeric(alphanumeric
is suggested since address contain pin codes/door number)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is LENGTH in COBOL II?

2 Answers   CSC,


How can you get the ksds file records into your cobol program?

0 Answers  


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

0 Answers  


In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


How to display string in the reverse order using occurs clause?

4 Answers  






When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


how do you reference the variable unblock file formats from cobol programs

0 Answers  


wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?

2 Answers   EDS,


what is meant by binary search?

4 Answers  


wht is packed decimal in cobol

2 Answers  


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


Categories