Give some advantages of REDEFINES clause?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
1. You can REDEFINE a Variable from one PICTURE class to
another PICTURE class by using the same memory
location.
2. By REDEFINES we can INITIALISE the variable in
WORKING-STORAGE Section itself.
3. We can REDEFINE a Single Variable into so many sub
variables. (This facility is very useful in solving Y2000
Problem.)
| Is This Answer Correct ? | 23 Yes | 1 No |
i Want All cobol ERROR codes?
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
Whats the use of Examine command? can someone help me?
how to resolve the file status 47.......
I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
What does the initialize statement do ?
how to transfer the file from pc to mainframe??
What rules are followed by the search verb.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
what is the minimum number of lines a Cobol program should have to successfully compile and run
What is the Purpose of Pointer in the string?