What will happen if a variable is declared as below..
Explain with an example?
Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).
Answer Posted / ezhilenthi
It wont show any Abend, the main purpose of REDEFINES
clause is to use the same storage area with one or more
data item with different sizes and PIC 's. We will face
Abend if we try to MOVE WS-VARN TO WS-VAR.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Which division and paragraphs are mandatory for a COBOL program?
What is rmode(24)
What is rmode(any) ?
What is the difference between external and global variables in COBOL?
Write a cobol program making use of the redefine clause.
Which mode is used to operate the sequential file?
How do you reference the fixed block file formats from cobol programs
How arrays can be defined in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
Write down the divisions of cobol program?
What are the different rules to perform a Search?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Can you please let me know the centre name of INS certification in Kolkata.
What is the difference between comp and comp-3?