GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 89 of 162    Print  
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 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 16, 2006 12:46:33   #1  
Balasubramanian        

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.
 
Is this answer useful? Yes | No
December 16, 2006 13:23:35   #2  
Balasubramanian G Member Since: December 2006   Contribution: 2    

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.
 
Is this answer useful? Yes | No
December 19, 2006 08:53:14   #3  
AJAY        

coz 01 is used for record structure.
01 level is used for record structure.. but wit occurs v can use reapeatin field structures not record structure Regards
 
Is this answer useful? Yes | No
December 20, 2006 00:11:49   #4  
Ritesh kumar        

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.

for example:- IT IS NOT VALID TO CODE

01 IN-REC OCCURS 15 TIMES.


 
Is this answer useful? Yes | No
January 11, 2007 00:58:53   #5  
mustafa shaikh        

RE: why we cant use occurs in 01level when it is defi...
there is repeat field with the same format not the record.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape