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).

Showing Answers 1 - 5 of 5 Answers

Balasubramanian

  • Dec 16th, 2006
 

This is a language requirement. Level No. 01 is used for records. There cannot be a table of records.

  Was this answer useful?  Yes

AJAY

  • Dec 19th, 2006
 

01 level is used for record structure.. but wit occurs v can use reapeatin field structures not record structure Regards

  Was this answer useful?  Yes

Ritesh kumar

  • Dec 20th, 2006
 

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. 

for example:- IT IS NOT VALID TO CODE

  01 IN-REC OCCURS 15 TIMES.

  Was this answer useful?  Yes

mustafa shaikh

  • Jan 11th, 2007
 

there is repeat field with the same format not the record.

  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