print error argument: Print an error message (SQL administration API)

Use the print error argument with the admin() or task() function to print the message associated with the specified error number.


Read syntax diagramSkip visual syntax diagram
>>-EXECUTE FUNCTION--+-admin-+--(------------------------------->

>--"print error"--,--"error_number"--)--;----------------------><

Element Description Key Considerations
error_number The error number, without a minus sign. The error_number must be an existing error number.


This function is equivalent to the finderr utility.


The following example prints the message text for the error number -105:
EXECUTE FUNCTION task("print error","105");
(expression)  ISAM error:  bad isam file format.

Copyright© 2018 HCL Technologies Limited