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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

904


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2183


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1036


What is the difference between external and global variables in COBOL?

1044


Are you comfortable in cobol or jcl?

805


Difference between cobol and cobol-ii?

942


How do get the result of your program directly on your pc?

2067


what is the use of outrecord?

1968


What is the use of intialize verb?

970


Name the sections present in data division.

901


what is amode(24), amode(31), rmode(24) and rmode(any)?

891


Explain how to differentiate call by context by comparing it to other calls?

901


how to refer the data field?

1987


How do you reference the following file formats from cobol programs?

908


What is difference between static and dynamic call in cobol?

1030