Redefine in cobol Redefine How do you use redefine for a group variable which is having arrays in it? 01 var-a pic x(100) 01 var-b redefines var-a. 05 temp-1 occurs 0 to 10 (1)how many bytes will take the redefine in this situation 01 a pic 9(2). 01 b redefines pic 9(2)...
Using OCCURS clause we can define tables/arrays in cobol. For example if you want to store monthly profits for the year, you need to define 12 data items for each month 01 WS-PROFIT-JAN PIC 9(05)V99. 01 WS-PROFIT-FEB PIC 9(05)V99. �. 01 WS-PROFIT-DEC PIC 9(05)V99. Inst...