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 declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
What is XDC ?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
What is SDSF?
What is SDSF?
What is 77 level used for ?
What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.
What is the difference between goback, stop run and exit program in cobol?
What is Redefines clause?
What is SSRANGE, NOSSRANGE ?