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
what is the difference between COBOL2 AND COBOL390?
Name the sections present in data division.
How do you reference the fixed block file formats from cobol programs
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Define static linking and dynamic linking.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
A table has two indexes defined. Which one will be used by the SEARCH?
What are the rules of the move verb?
What are the cobol coding sheets?
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.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is the difference between external and global variables in COBOL?
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?