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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the problem of ordered sequential files access?
What is link edit in cobol?
Which division and paragraphs are mandatory for a COBOL program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
In COBOL, what is the different between index and subscript?
) How do u handle errors in BMS macro?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Write the code to count the sum of n natural numbers.
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is static and dynamic call in cobol?
Write a program that uses move corresponding.
how do you reference the variable block file formats from cobol programs