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

Confusion regarding Test After condition


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

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Thu Apr 16, 2009 2:16 pm
Reply with quote

Hi,

I have following code and i want to knwo how many times 100-main-para
and 200-new-para are ececuted.

Code:
MOVE 1 TO CTR.
PERFORM 100-MAIN-PARA UNTIL CTR>20
100-MAIN-PARA.
  ADD 1 TO CTR.
  PERFORM 200-NEW-PARA WITH TEST AFTER UNTIL CTR>10
100-EXIT
      EXIT.
200-NEW-PARA.
  ADD 1 to CTR.
200-EXIT.
      EXIT.


Please explain the process.

regards,
rupesh gupta
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 16, 2009 2:24 pm
Reply with quote

add two new counters, and at the end display them
simple and effective, no speculations or wild guessings
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 Zunit Test case editor error Testing & Performance 4
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts selectively copy based on condition DFSORT/ICETOOL 3
No new posts REXX Test under Mask??? CLIST & REXX 3
Search our Forums:

Back to Top