X04AAF returns the value of the current error message unit number, or sets the current error message unit number to a new value.
X04AAF enables those library routines which output error messages, to determine the number of the output unit to which the error messages are to be sent; in this case X04AAF is called with
. X04AAF may also be called with
to set the unit number to a specified value. Otherwise a default value (stated in the
Users' Note for your implementation) is returned.
None.
None.
Not applicable.
The time taken by X04AAF is negligible.
In this example X04AAF is called by your main program to make the error message from the routine DUMMY appear on the same unit as the rest of the output (unit
). Normally a NAG Library routine with an IFAIL parameter (see
Section 3.3.2 in the Essential Introduction) would take the place of DUMMY.
None.