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 comp-1 and comp-2?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What are the different rules to perform a Search?
how to access the file from prodution from changeman tool and to submit a file to production
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the local-storage section?
What are the different types of condition in cobol and write their forms.
Write some characteristics of cobol as means of business language.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How you can read the file from bottom?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What are declaratives and what are their uses in cobol?