Page 1 of 2

how will u capture the 900th run , with a counter 9(02)

PostPosted: Tue Oct 30, 2007 7:16 pm
by abkumarch
A loop "perform 1000 times"

U hav to kno the 900th occurance, but u r provided with a counter of pic 9(2). Now how can u do it?

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Wed Oct 31, 2007 2:11 am
by dick scherrer
Hello,

Please describe how this requirement originated.

As worded, it makes little or no sense.

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Wed Oct 31, 2007 8:51 pm
by abkumarch
look dick, these r the q i was asked in an intvw.. now i cant ask the interviewer any thing... plz help me if possible

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Wed Oct 31, 2007 8:53 pm
by CICS Guy
If the question was how to keep track of the loops with a two byte number, then use packed or binary........

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Wed Oct 31, 2007 9:33 pm
by dick scherrer
Hello,

look dick, these r the q i was asked in an intvw.. now i cant ask the interviewer any thing... plz help me if possible
I suspect that either the question is incomplete or incorrect or the answer would need to be "we cannot capture the 900th run using only a counter 9(02)". There is also the possibility that the question is as CG suggests and the requirement was really a 2-byte counter, not a "9(02)" counter.

When questions like this are posted, we cannot help much. From what i've been able to observe over many, many such questions, it is usually because there was a communication breakdown between the interviewer and the person being interviewed.

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Wed Oct 31, 2007 9:41 pm
by abkumarch
that may be true, bt what i m asking is what i faced.. now if u cant answer.. dont make it stupid question.. b coz u also hav a limit.. its ok

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Thu Nov 01, 2007 3:45 am
by dick scherrer
Hello,

now if u cant answer.. dont make it stupid question
I believe you have been answered. Which part of "you cannot do that" do you not understand? We were merely trying to offer alternatives that would fit for you.

Be assured that none of the moderators or other senior people intend to "make it stupid".

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Thu Nov 01, 2007 6:00 pm
by abkumarch
any way whoever has made it stupid, i dont kno....

Look here i m not getting the real time environment to chk all these, thats the problem i m sendingit to here

And whenever i wil get the answer, i must make u all kno it...ok

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Tue Dec 18, 2007 4:22 am
by dick scherrer
Hello,

And whenever i wil get the answer, i must make u all kno it...ok
Have you had any luck finding a way to do what you asked?

Re: how will u capture the 900th run , with a counter 9(02)

PostPosted: Thu Oct 23, 2008 6:31 am
by dlmatthews
Excellent patience and perseverance Dick