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
 

 

ON 2 AND EVERY 1 - Statement ???

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

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Tue Jul 25, 2017 1:20 pm    Post subject: ON 2 AND EVERY 1 - Statement ???
Reply with quote

Hi everyone,

I have come across a COBOL code as like below. Could anyone please explain me what the 'EVERY' statement means in this context.

The on statement is familiar but i can't remember the every notation.

ON 2 AND EVERY 1

Thanks in advance, UmeySan
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1031
Location: Oostende, Belgium

PostPosted: Tue Jul 25, 2017 1:58 pm    Post subject:
Reply with quote

How about RTFM?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Tue Jul 25, 2017 2:35 pm    Post subject:
Reply with quote

Superduper !!!

Before spending time in searching some old DOS/VS Cobol Manuals, i hoped
some of the older experts could easily explain it in one sentence.

By the way, and to enlighten you if you don't knew it yourself, i figured out how it works.

ON 2 AND EVERY 1

On the first iteration do nothing
From the second iteration and for every next, do something.

Greeetings from Cologne to Ostende
UmeySan
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 Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
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


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