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 subscript in cobol?give realtime example?

2 Answers   Wipro,


How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

9 Answers   Bank Of America,


How many maximum number of procedures can we write in one COBOL program?

5 Answers  


can we use variable picture clause as xx.99 in cobol.

3 Answers  


what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.

3 Answers   HCL, TCS,


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

3 Answers   CTS, IBM, iFlex,


Are you comfortable in cobol or jcl?

0 Answers  


I want ALL jcl ERROR cods

1 Answers  


Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?

12 Answers   T systems, Tech Mahindra,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


What is difference between static and dynamic call in cobol?

0 Answers  


IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,


Categories