next up previous
Next: PAR_PUT1x - Puts a vector of values into a parameter
Up: Reference Manual
Previous: PAR_PROMT - Sets a new prompt string for a parameter

PAR_PUT0x - Puts a scalar value into a parameter    

Description:
This routine puts a scalar value into a parameter. If necessary, the specified value is converted to the type of the parameter.

Invocation:
CALL PAR_PUT0x( PARAM, VALUE, STATUS )

Arguments:
PARAM = CHARACTER * ( * ) (Given)
The parameter name.
VALUE = ? (Given)
The value to be put into the parameter.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:
  • There is a routine for each of the data types character, double precision, integer, logical, and real: replace "x" in the routine name by C, D, I, L, or R respectively as appropriate. The VALUE argument must have the corresponding data type.
  • A scalar (0-dimensional) parameter is different from a vector (1-dimensional) parameter containing a single value.
  • In order to obtain a storage object for the parameter, the current implementation of the underlying ADAM parameter system will proceed in the same way as it does for input parameters. This can result in users being prompted for `a value'. This behaviour, and how to avoid it, is discussed further in the Interface Module Reference Manual ( SUN/115).
  • Limit checks for IN, RANGE, MIN/MAX are not applied.



next up previous
Next: PAR_PUT1x - Puts a vector of values into a parameter
Up: Reference Manual
Previous: PAR_PROMT - Sets a new prompt string for a parameter

PAR Interface to the ADAM Parameter System
Starlink User Note 114
Malcolm J. Currie
Alan J. Chipperfield
1999 September 24
E-mail:ussc@star.rl.ac.uk