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 / smiley
Can anybody explain...How C and D are having values as "XXX"
in answer ,though not initialized. Purpose of redefines
clause is to use the same storage space for different data.
I think answer posted by PRANAY2X is correct.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Write a cobol program making use of the redefine clause.
How do we get current date from system with century in COBOL?
How do u write test cases?
For rewrite, why is it mandatory that file needs to be opened?
Which division and paragraphs are mandatory for a COBOL program?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Write the code implementing the perform … varying.
What are 77 levels used for?
How do you reference the fixed block file formats from cobol programs
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Which is not true about evaluate statement
What is the usage of comp fields in cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Write a program to enter and display the names of students in a class using the occurs clause.
What the difference is between continue and next sentence?