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
What is the difference between comp and comp-3 usage?
What is the difference between binary search and sequential search?
What do you understand by psb and acb?
Why would you use find and get rather than to obtain?
What are the various section in data division and briefly explain them.
What is a SSRANGE and NOSSRANGE?
What rules are to be followed while using the corresponding options?
) How do u handle errors in BMS macro
How do define dynamic array in cobol.
What is the local-storage section?
What is the utilization of copybook in cobol?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Write a program to explain size error.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?