why we cant use occurs in 01level when it is defined as a group? eg. 01 a.------->why cant we use occurs here? 02 b occurs 5. 03 c pic 9(4). 03 d pic x(4).
Total Answers and Comments: 5
Last Update: January 11, 2007 Asked by: karthikeyan
RE: why we cant use occurs in 01level when it is defi...
This is a language requirement. Level No. 01 is used for records. There cannot be a table of records. So the use of OCCURS clause in 01 level is not allowed.
RE: why we cant use occurs in 01level when it is defi...
An occurs clause may be used on levels 02-49 only.That is the occurs is not valid for the 01 level since it must be used for defining fields not records.Occurs is used for repeated occurance of fields then not records.