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 |
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
Can we move X(7) to S9(7) COMP?
what is the difference between Normal vaiable and comp variable.
what is rediffine clause?in what situation it can use?give me real time example?
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
How To move a value to an array using move verb?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?