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
What is inspect in cobol ?
Which Search verb is equivalent to PERFORM…VARYING?
What is perform what is varying?
Differentiate between structured cobol programming and object-oriented cobol programming.
What are declaratives and what are their uses in cobol?
how do you reference the esds vsam file formats from cobol programs
i want a program using by if, evaluate , string, unstring, perform, occurs?
how do you reference the fixed unblock file formats from cobol programs
What do you understand by psb and acb?
Explain how you can characterize tables in cobol?
How to print 10 to 1 if the input have only 10 digit number?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
what is difference between cobol and cobol/400
What are 77 levels used for?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.