IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to use OCCUR in the PERFORM Statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
markanthos

New User


Joined: 28 Apr 2005
Posts: 14
Location: India

PostPosted: Thu Apr 28, 2005 11:46 am
Reply with quote

Is it possible to use OCCUR in the PERFORM Statement ?

If so how is it different from the Until clause?
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Thu Apr 28, 2005 2:17 pm
Reply with quote

Quote:
Is it possible to use OCCUR in the PERFORM Statement


yes

Quote:
If so how is it different from the Until clause?


Use OCCURS if you know the no of times to repeat the loop.

Else use UNTIL to specify the condition.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Apr 29, 2005 7:47 am
Reply with quote

Hi markanthos,

There is no OCCUR clause in a PERFORM stmt.

You can use:

PERFORM PARA-X 15 TIMES
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Apr 29, 2005 8:12 am
Reply with quote

Yes, You are right Jack...

We can't use OCCURS Clause in PERFORM Statement.

Thank you.
Back to top
View user's profile Send private message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Tue May 03, 2005 4:51 pm
Reply with quote

hi

u r right jack. occurs caluse can't used in perform statement.


regards
naveen
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
Search our Forums:

Back to Top