Is while opt on? if so, are vTCT and vDCT defined prior to the while
statement. The infamous Joe Sowers pointed out this way back
(when it works under trace and not at runtime)... can't define or
clear vars within a while loop with whileopt on.
Ben Petersen
On 26 Apr 2001, at 13:04, Ken Godee wrote:
> It's pretty simple stuff usually easy to find what's causing it
> but I too am mystified
>
> WHILE SQLCODE <> 100 THEN
> IF vDCT = vLCT THEN
> SET VAR vTCT = (.vTCT + 1)
> SET VAR vDCT = 0
> ENDIF
> SET VAR vDCT = (.vDCT + 1)
> FETCH movload into vMOVLC
> ENDWHILE
>
> > I'm stuck with an "I>" prompt problem.
> > The program I'm writing has two while statements, one nested and
> > within the nested while there's an IF Then that compares two vars.
> > It's this IFThen that keeps blowing out to the "I>" prompt.
> > I've ran into the "I>" prompt before, usally it's a syntax problem, well
> > I've tried every variation that I can and still have problems. If I run
> > the program under "trace/debugger" it runs fine. So you would thing
> > that using the "SET WHILEOPT OFF" might help but it does not.
> > I've tried using a WHILE instead of a IF THEN but then it blows out
> > to a "w>" prompt.
> > This happens under dos or win 6.1, if anyone has any ideas it
> > would be great before I give up and just start the program over.
> >
> >
>
>
>
> The Perfect Image Graphics Co.
> 2429 W. 12th St.
> Tempe, AZ 85281
>
> 800-533-8732
>
>