I HAVE FOLLOWING DECLARATION.
02. A PIC X(10) VALUE 'XXXXXXXXXX'.
02. B REDEFINES A.
05. C PIC X(3).
05. D PIC X(3).
05. E PIC 9(3).
IN MY PROG, I HAVE
MOVE 1 TO E.
DISPLAY A.
WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
PLEASE EXPLAIN THE ANSWER. THANKS.
Answer Posted / paray2x
1. you will get data exception as you cannot move 'XXX' to
a 9(3) field.
2. Since you have not initialised C,D it will be '......001'
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
what is the use of outrecord?
What are the pertinent COBOL
Define static linking and dynamic linking.
Describe the cobol database components?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What are the different data types in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between external and global variables in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
What is cobol?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is difference between static and dynamic call in cobol?
What are the different open modes available in cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc