STOP - Raise Exception#

This command is used to raise an exception to the user. This command should only be used to absolutely stop a save from taking place. It throws a database exception that displays the brief text in Operand 1 along with the stack trace of where it came from.

In this sample before an employee can apply for any postings until a phone number is added to the profile. If no phone number is provided than the application will not be created and the candidate will be issued an exception containing the value of Operand 1.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 LETV PHONEEQNLDBRCA.PHONE_NUMBERA (999) 999-9999 99999
00100 IFVPHONEEQA9999 00200
00200 STOPA Please Provide a contact number before applying 99999
99999 EXIT


Notes #

Click to create a new notes page