CONFIG()

CONFIG()

Top  Previous  Next

 

The CONFIG() function returns the value of a configuration parameter.

 

 

Format

 

CONFIG(param)

 

where

 

paramis the name of the parameter to be retrieved.

 

 

The CONFIG() function can be used to retrieve the value of configuration parameters defined in the QM configuration file. The STATUS() function will return zero if successful.

 

Configuration parameters that may be repeated within the configuration file (e.g. STARTUP) are returned as a dynamic array with each entry as a separate field. This does not apply to parameters that are defined as additive numeric values (e.g. NETFILES) where the composite result is returned.

 

If param is not recognised as a configuration parameter name, the function returns a null string and the STATUS() function will return ER$NOT.FOUND.

 

 

Example

 

GS = CONFIG("GRPSIZE")

 

This statement returns the value of the GRPSIZE configuration parameter, the default group size used when creating a dynamic file.