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

catch 900th run of a loop of 1000 times with a 9(2) counter


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jitendramishra

New User


Joined: 30 Oct 2007
Posts: 2
Location: bangalore

PostPosted: Thu Nov 08, 2007 1:03 am
Reply with quote

i ve a loop" PERFORM 1000 TIMES"

I ve to capture the 900th run. Can i do it using a 9(02) counter ?

I was provided only this counter
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Nov 08, 2007 1:06 am
Reply with quote

jitendramishra wrote:
i ve a loop" PERFORM 1000 TIMES"

I ve to capture the 900th run. Can i do it using a 9(02) counter ?

I was provided only this counter


Is the counter by any chance COMP.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 08, 2007 4:28 am
Reply with quote

Hello jitendramishra,

I suspect you will get no suitable answers in this forum either. . .

As was explained to you before, using only a 9(02) counter, you cannot count to 900. If you are willing to adjust to a 2-byte counter, it becomes simple. If you use a second counter and count to 90 ten times, you can get to 900.

If you get an answer that works for you, it would be interesting to see.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. REXX - Do - Not able to LOOP CLIST & REXX 10
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts REXX - Dataset checking in a do forev... CLIST & REXX 6
Search our Forums:

Back to Top