next up previous
Next: DAT_PUTx - Write primitive
Up: ROUTINE DESCRIPTIONS
Previous: DAT_PRMRY - Set or enquire primary/secondary locator status

DAT_PUT - Write primitive   

Description:
Write a primitive (type specified by a parameter).
Invocation:
CALL DAT_PUT( LOC, TYPE, NDIM, DIM, VALUE, STATUS )

Arguments:
LOC = CHARACTER * ( DAT__SZLOC ) (Given)
Primitive locator.
TYPE = CHARACTER * ( DAT__SZTYP ) (Given)
Data type.
NDIM = INTEGER (Given)
Number of dimensions.
DIM = INTEGER( NDIM ) (Given)
Object dimensions.
VALUE = ?( <dim( 1 )>, <dim( 2 )>, ... ) (Given)
Object value.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:
When writing character strings the normal Fortran 77 rules for character assignment are followed, ie. if the string length of the value array is less than that of the primitive, each string is padded to the right with blanks; if greater, they are truncated from the right.



next up previous
Next: DAT_PUTx - Write primitive
Up: ROUTINE DESCRIPTIONS
Previous: DAT_PRMRY - Set or enquire primary/secondary locator status

HDS Hierarchical Data System
Starlink User Note 92
R.F. Warren-Smith & M.D. Lawden
23rd February 1999
E-mail:rfws@star.rl.ac.uk

Copyright (C) 1999 Central Laboratory of the Research Councils