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

can we use full outer join with cursors declared in cobol program?

2 Answers  


can we read records in a file from botom to top. if possible how can we read

12 Answers   ACS,


How can you submit a job from COBOL programs?

2 Answers   ITC Infotech,


why mainframe we use not like java as frontend oracle as backend. or not word excel.In there also huge ammount data stored.

2 Answers   TCS,


u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


What is static and dynamic call in cobol?

0 Answers  


01 b pic +9(4) How many bytes it will take for storage???

2 Answers  


What are the various section in data division and briefly explain them.

0 Answers  


i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."

4 Answers   CSC,


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,


1.What is the default print format in cobol?

5 Answers   HSBC,


How to retain the Duplicates in the one records?

3 Answers   CS,


Categories