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


Please Help Members By Posting Answers For Below Questions

Write a cobol program making use of the redefine clause.

721


How do we get current date from system with century in COBOL?

792


How do u write test cases?

1631


For rewrite, why is it mandatory that file needs to be opened?

616


Which division and paragraphs are mandatory for a COBOL program?

704






What is the difference between structured cobol programming and object alternativelyiented cobol?

746


Write the code implementing the perform … varying.

637


What are 77 levels used for?

652


How do you reference the fixed block file formats from cobol programs

695


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

666


Which is not true about evaluate statement

1562


What is the usage of comp fields in cobol?

647


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

2096


Write a program to enter and display the names of students in a class using the occurs clause.

642


What the difference is between continue and next sentence?

651