7 Setting Dynamic Defaults

The ADAM parameter system has the concept of ‘dynamic defaults’ for program parameters. These are values suggested by the program itself and the Interface Module may be set up to cause the dynamic default to be used as the value for a parameter using the VPATH Field (see SUN/115), or given as a suggested value in a prompt, using the PPATH Field (see SUN/115).

Subroutine DAT_DEF can be used to set an HDS object as the dynamic default for a parameter but its usefulness is limited because it has to be given a locator to the object. The locator need only be valid when DAT_DEF is called, the object name is found then and stored as a character string. The string is used when the dynamic default is required.