next up previous 225
Next: Handling nulls in expressions
Up: Null and locum values
Previous: Reporting the generation of null and locum values

CAT subroutine interface

The NULL and EXCEPT attributes of a column (see Section [*]) control the way that null or locum values are handled for that column. They are specified when the column is created and are immutable thereafter. The NULL attribute defines the type of null or locum which the column supports. The possibilities are:

If the standard HDS null value is being used then it is not necessary to associate its actual value with the column; knowing that the standard value is to be used is adequate. Conversely, if either:

then the required value must be associated with the column. In either case, this value is stored in the exception attribute of the column.

In the routines to GET and PUT values through the CAT subroutine interface, null values are indicated by flags which appear as separate arguments in the calling sequences for the GET and PUT subroutines. However, the appropriate Starlink bad value is also substituted for the value in the actual data variable or array. The advantages of this approach are:



next up previous 225
Next: Handling nulls in expressions
Up: Null and locum values
Previous: Reporting the generation of null and locum values

CAT [1ex
Starlink User Note 181
A.C. Davenhall
4th April 2001
E-mail:ussc@star.rl.ac.uk

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