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
 

 

Statement in occur clause to retrive record for 25 times

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
tomrsan

New User


Joined: 15 Oct 2005
Posts: 13
Location: chennai

PostPosted: Tue Dec 06, 2005 7:25 pm    Post subject: Statement in occur clause to retrive record for 25 times
Reply with quote

hi

if we code a statement in occur clause to retrive record for 25 times but it occur 26,27 also means what happened, is it show any error? why it happened?

urs
san
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 7:35 pm    Post subject: Re: occurs
Reply with quote

Hi tomsran,

Please give some more explanation on your query. I got confused with your query.
Back to top
View user's profile Send private message
tomrsan

New User


Joined: 15 Oct 2005
Posts: 13
Location: chennai

PostPosted: Tue Dec 06, 2005 7:40 pm    Post subject: occurs
Reply with quote

hi
if a file contain 28 records, if we write the occur clause for 25 times, but it ocuurs 26,27,28 time also means, y it happened?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Tue Dec 06, 2005 8:11 pm    Post subject: Re: occurs
Reply with quote

It'll show an error... If SSRANGE is on...

in case of NOSSRANGE (by default) ..there is a possibility you may never come to know about bad data or you may get an subscripting error or other.

Regards,

Priyesh.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 8:21 pm    Post subject: Re: occurs
Reply with quote

Hi Priyesh,

Thanks for your information. Let me also check with SSRANGE because I haven't come across this situation.

Hope tomsran got the answer.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm


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