GET ERROR DETAILS By CodeScript

This is an intemaediate level example of API use.
The Utility gives you user friendly error messages from system error code numbers.
Could be useful when you are using API and want your client or even yourself 
know what went wrong.

The script has been split into main and a include file for ease of use.

In any of your .dsc files just do 3 things:

Place the error.fil in the same directory as the .dsc file.
Add a line "#include error.fil" at the top(no quotes).
Pass the error code variable(e.g. %A) as follows :

WARN @GETERRORDETAILS(%A)

OR

INFO @GETERRORDETAILS(%A)

An error message will be displayed.