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.
Answers were Sorted based on User's Feedback
Answer / abinand shetty
re c is the correct one as maximum numerical declaration
can be 9(18) .so above will result in compilation error
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / anu
c. since maximum digits for numeric data type is 18 only.
| Is This Answer Correct ? | 10 Yes | 0 No |
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 |
S9(5)V9(2) occupies how many bytes memory ?
consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.
wht is the difference between goto and perform stmts
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
How do u know what version of cobol u are using?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
how will u code parm parameter and where pls ?
Whats the use of Examine command? can someone help me?
what happens if we dont close cursor in db2-cobol pgm?
What is ASKTIME, SUSPEND