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
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is redefines clause in COBOL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How to print 10 to 1 if the input have only 10 digit number?
Why occurs cannot be used in 01 level in COBOL?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
In COBOL, what is the different between index and subscript?
) How do u handle errors in BMS macro
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How do you differentiate between cobol and cobol-ii?
What is the difference between next sentence and continue in cobol programing language?
Explain how you can characterize tables in cobol?
What is a report item?
What are the different data types in cobol?
what are decleratives in cobol?