Consider the following:
77 A PIC 9(10)
77 B PIC 9(10)
77 C PIC 9(19)
MULTIPLY AB BY B GIVING C
Which of the following is true ?
(a) The execution of the above may result in size error.
(b) The execution of the above will result in size error.
(c) The definition of C is invalid resulting in compilation
error.
(d) No error will be thee and the program would proceed
correctly.
Answer Posted / prasanna
A and B are two different variables and there is no
variable declared as AB. Do COBOL has enough knowledge to
identify and multiply the vaiable A and the variable B,
then by B giving the result in C. I don't think so.
Kindly correct me if I am wrong..
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how do you reference the rrds file formats from cobol programs
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
how do you reference the printer file formats from cobol programs
how to convert the recors form vsam file to db2 table tru file aid
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How do we get current date from system with century in COBOL?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is rmode(any) ?
What is the difference between comp and comp-3?
What is difference between static and dynamic call in cobol?
Define static linking and dynamic linking.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
example for sub strings ? and refernce modifications whit output pls
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?