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
 

 

Is it possible to use OCCUR in the PERFORM Statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Is it possible to use OCCUR in the PERFORM Statement
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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