What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I want Display WS-VARX and WS-VARN?
Answer Posted / jitinder
The Syntax of Redefine Clause is
Label number data-name-1 REDFINES data-name-2
Here data-name-1 should not contain VALUE clause, but data-
name-2 can contain VALUE clause.
Plz correct me if i m wrong.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
how do you reference the variable unblock file formats from cobol programs
What is the difference between PIC 9.99 and PIC9v99?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Can you please let me know the centre name of INS certification in Kolkata.
Difference between array and sub-script ?
What is the difference between next sentence and continue in cobol programing language?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How do we get current date from system with century in COBOL?
Which mode is used to operate the sequential file?
How do you get the data to code the BMS macro?
Name the sections present in data division.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc