At 06:58 PM 11/25/2012, Gary Wendike wrote:

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.

Gary,

Try the following and see what you get ..

IF (vStdHrs < 30 OR vStdHrs IS NULL) THEN
   GOTO EndPrg
ENDIF
-- Code Here ...
LABEL EndPrg
- More Code Here ...
RETURN

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--- RBASE-L
=======================3D=======================3
D=
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
=======================3D=======================3
D=
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
=======================3D=======================3
D=
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
=======================3D=======================3
D=
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
=======================3D=======================3
D=


Reply via email to