Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
catch 900th run of a loop of 1000 times with a 9(2) counter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
jitendramishra

New User


Joined: 30 Oct 2007
Posts: 2
Location: bangalore

PostPosted: Thu Nov 08, 2007 1:03 am    Post subject: catch 900th run of a loop of 1000 times with a 9(2) counter
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
References
PostPosted: Thu Nov 08, 2007 1:03 am    Post subject: Re: catch 900th run of a loop of 1000 times with a 9(2) counter Reply with quote

Craq Giegerich

Senior Member


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

PostPosted: Thu Nov 08, 2007 1:06 am    Post subject: Re: catch 900th run of a loop of 1000 times with a 9(2) coun
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
Moved: Thu Nov 08, 2007 2:32 am by William Thompson From Mainframe COBOL to Interview Questions
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6936
Location: 221 B Baker St

PostPosted: Thu Nov 08, 2007 4:28 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1