RStyle it and see if anything untoward is reported.
There could be some error in your code that is preventing the interpreter
from finding the LABEL further down.

Also, trace and check the datatype of the variable.

You could break that code into two parts, best to check for NULL first.

IF vstdhrs IS NULL THEN

**

   GOTO endprg****

ENDIF

IF vstdhrs < 30 THEN****

    GOTO endprg****

ENDIF



Dennis McGrath
[email protected]
[email protected]


On Sun, Nov 25, 2012 at 5:58 PM, Gary Wendike <[email protected]>wrote:

> I have a client running 7.6.  The have a program checks for a condition
> and if it is not met the program executes a “GOTO” command to finish the
> routine.****
>
> ** **
>
> Here is a snippet of the code…****
>
> ** **
>
> IF vstdhrs < 30 OR vstdhrs IS NULL THEN****
>
>   GOTO endprg****
>
> ENDIF****
>
> .****
>
> .****
>
> .****
>
> Label endprg****
>
> More code…****
>
> ** **
>
> In my current problem, the vstdhrs are less than 30 should go to the
> “Label”  endprg.  However I am getting an error message that the “Label” is
> not found.****
>
> ** **
>
> Any thoughts on the issue?  I have never run across this before.  I am
> sure it is something that I have done wrong somewhere.****
>
> ** **
>
> Thanks****
>
> Gary****
>
> ** **
>

Reply via email to