|
|
| Author |
Message |
jitendramishra
New User
Joined: 30 Oct 2007 Posts: 2 Location: bangalore
|
|
|
|
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 |
|
 |
References
|
Posted: Thu Nov 08, 2007 1:03 am Post subject: Re: catch 900th run of a loop of 1000 times with a 9(2) counter |
 |
|
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 969 Location: Virginia, USA
|
|
|
|
| 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 |
|
 |
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: 7505 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
|
|