Labels/Logical Statement References
PxPlus supports the use of logical statement references (labels) in lieu of line number references in your applications. PxPlus supplies a set of built-in labels (keywords with the leading asterisk) that can be used wherever you would use a statement reference (line number or line label).
The built-in PxPlus labels/logical statement references are:
*BREAK | Emulates BREAK Immediate Exit of Loop | |
*CONTINUE | ||
*END | Emulates END Halt Execution of Program | |
*ESCAPE | Emulates ESCAPE Interrupt Program Execution | |
*NEXT | Goes to the beginning of the next line/statement | |
*PROCEED | Continues to the next statement in a compound statement or to the beginning of the next line | |
*RETRY | Emulates RETRY Re-Execute Failing Instruction | |
*RETURN | Emulates RETURN Return From a Subroutine | |
*SAME | Goes to the start of the current line/statement |
Example
A=0,Y$=""
read (1,ind=A++,err=*next)X$;
Y$+=X$;
goto *sameSee Also
BREAK Immediate Exit of Loop
CONTINUE Initiates Next Iteration of Loop
END Halt Execution of Program
ESCAPE Interrupt Program Execution
RETRY Re-Execute Failing Instruction
RETURN Return From a Subroutine