next up previous 211
Next: Synchronising message output
Up: Using MSG within ADAM applications
Previous: Reserved token STATUS


Getting the conditional output level

In addition to the subroutine for setting the filter level for conditional message output, i.e. MSG_IFSET, the ADAM version of MSG also provides subroutine MSG_IFGET to get a character string from the parameter system and use this to set the filter level The subroutine has the calling sequence:

      CALL MSG_IFGET( PNAME, STATUS )

where PNAME is the parameter name. It is recommended that one parameter name is used universally for this purpose, namely MSG_FILTER, in order to clarify the interface file entries. The three acceptable strings for MSG_FILTER are:

QUIET
- representing MSG__QUIET;
NORMAL
- representing MSG__NORM;
VERBOSE
- representing MSG__VERB.
Abbreviations are accepted but any other value will result in an error report and STATUS being returned set to MSG__INVIF.



next up previous 211
Next: Synchronising message output
Up: Using MSG within ADAM applications
Previous: Reserved token STATUS

MERS (MSG and ERR) Message and Error Reporting Systems
Starlink User Note 104
P C T Rees
A J Chipperfield
22 October 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils