Tag Archives: get Name of the Program

How to get Name of the Program where the Error occurred

Errp returns the name of the script where an error occurred. It can be used in the error handling routine set by Onerrgo. Syntax : errp  Examples :   # Let’s trigger an error (division by zero) Funprog DIV_BY_ZERO Local Integer ZERO, ONE, RESULT Local Char ERROR_MESSAGE(250) ONE=1 : ZERO=0 Onerrgo ERR_HANDLE RESULT = ONE… Read More »