Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
why should't code occurs clause in 01 level no

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
kiran_polnati
Warnings : 2

New User


Joined: 23 Jun 2005
Posts: 22

PostPosted: Tue Sep 12, 2006 5:53 pm    Post subject: why should't code occurs clause in 01 level no
Reply with quote

hi ,

why we are not using 01 level number for occurs clause .can anybody help me

regards
kiran
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Sep 12, 2006 6:02 pm    Post subject:
Reply with quote

Hi kiran

OCCURS clause cannot be used in 01 Level may be because, it is there to repeat fields with same format, not the records.

Correction are welcome
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Tue Sep 12, 2006 9:35 pm    Post subject: Re: why should't code occurs clause in 01 level no
Reply with quote

Occurs caluse cant be used in 01 level

as we know that File is read while record is written in the file
So there need to be a single record at a time to write or read, which is dependend on the 01 level (group variable).
Back to top
View user's profile Send private message
dkarths
Warnings : 1

New User


Joined: 08 Sep 2006
Posts: 1

PostPosted: Mon Sep 25, 2006 1:07 pm    Post subject: Re: why should't code occurs clause in 01 level no
Reply with quote

hi ,

it's correct, occurs is used to repeat field not records,so it can't be used in 01 level
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us