Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us