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

what is the difference between COBOL2 AND COBOL390?

2453


Name the sections present in data division.

701


How do you reference the fixed block file formats from cobol programs

705


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1941






Define static linking and dynamic linking.

669


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

720


A table has two indexes defined. Which one will be used by the SEARCH?

759


What are the rules of the move verb?

706


What are the cobol coding sheets?

664


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


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

813


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897