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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

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