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 report-item in COBOL?
IF I mention stop run in CICS what happens?
Write a cobol program making use of the redefine clause.
What is rmode(24)
How do define dynamic array in cobol.
What is comp-1 and comp-2?
Can a Search can be done on a table with or without Index?
What are the different rules of SORT operation?
What are the various section in data division and briefly explain them.
how to move the records from file to array table. give with code example
In COBOL, what is the different between index and subscript?
How do you define a variable of comp-1 and comp-2?
What is the difference between binary search and sequential search?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the difference between structured cobol programming and object alternativelyiented cobol?