Can Redefines clause be used in File section, if yes at which level number ?

Showing Answers 1 - 38 of 38 Answers

Samiha

  • Aug 23rd, 2005
 

Redifines clause is used to redefine a grouplevel item or elementary item...that is in all levels

  Was this answer useful?  Yes

arif

  • Sep 1st, 2005
 

The REDEFINES clause cannot be used in a level 01 entry in the File Section.

akshay

  • Dec 21st, 2005
 

NO !! you cannot redefine at 01 level , in FILE section !!!

  Was this answer useful?  Yes

John

  • Jan 24th, 2006
 

We can use redifine in file section and also at any level. Redifine is just the method of representing thr data in different formats. But the only clause is that lenght of the redefining field should be less than or equal to the lenght of the redifined field.

pradipta

  • Feb 4th, 2006
 

yes it's possible,but the level no should be 01,02-49.

  Was this answer useful?  Yes

Nabin Chandra Sahu

  • Mar 15th, 2006
 

Redefines clause can not be used in File section, it is only used in working- storage section. level no will be 01-49, not 66 and 88. In 02-49 we can only redefines with same storage space.In 01 level we can redefines with lower storage space not exceds the oroginal storage space.

culver_lake

  • Mar 19th, 2006
 

the redefines clause certainly can be used in the file section.  within a record description it can be used as many times and as many places as you want/need.  the only trick is that there is no redefines clause allowed at the 01 level like is allowed in working storage. Just code multiple 01 levels in the FD for the file and each one is automatically a redefines of the record in the buffer. You can do it at the 01 level, you just don't say REDEFINES.

  Was this answer useful?  Yes

praleo

  • Jul 12th, 2006
 

You can't use redefine clause in the file section at 01 level. It can be used in the working storage section at 01 level.

  Was this answer useful?  Yes

P.Karthikkumar

  • Jan 17th, 2007
 

Hi,

  01 level is a self redifine one.

Thanks

P.Karthikkumar

  Was this answer useful?  Yes

Murali

  • Jun 21st, 2007
 

Redefines can be used in File Section,but from 02-49 level
Thanks,
Murali

  Was this answer useful?  Yes

mridul

  • Aug 18th, 2011
 

you can define refine at any level other than 01,66,77,88..

sumit kumar

  • Sep 21st, 2011
 

yes, you right !...Redefine clause can,t be used particularly on levael number 01,66,77,88.instead it can valid for other lvel i.e 2 to 49.

  Was this answer useful?  Yes

Code
  1. 01 CUSTOMER-DATA.

  2.    05 CUSTOMER-ID                          PIC X(10).

  3.    05 CUSTOMER-ID-PARTS REDEFINES CUSTOMER-ID.

  4.       10 LOCATION                          PIC X(3).

  5.       10 NAME-ABREV                        PIC X(5).

  Was this answer useful?  Yes

BALASUKUMAR

  • May 10th, 2012
 

Cant used redefines clause in file-section.

  Was this answer useful?  Yes

giriswamy

  • Aug 17th, 2012
 

except 66 and 88 levels it will work.

  Was this answer useful?  Yes

VISHAL

  • Jan 25th, 2020
 

01-49--------------W-S-SECTION
02-49---------------FILE SECTION

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions