putdb, putsdb, putkdb — Write datasets to database
subroutine putdb(handle,name,idiv,buffer,type,size,status) integer*4 handle character*(*) name integer*4 idiv integer*4 | integer*8 buffer(*) real*4 | real*8 buffer(*) complex real*4 | complex real*8 buffer(*) character*4 type integer*4 size integer*4 status subroutine putsdb(handle,name,ipos,buffer,type,size,status) integer*4 handle character*(*) name integer*4 ipos integer*4 | integer*8 buffer(*) real*4 | real*8 buffer(*) complex real*4 | complex real*8 buffer(*) character*4 type integer*4 size integer*4 status subroutine putkdb(handle,name,idiv,buffer,type,size,status) integer*4 handle character*(*) name integer*4 idiv character*(*) buffer character*4 type integer*4 size integer*4 status
The putdb functions transfer the content
of buffer to a dataset name on
a database identified by handle. If the
sub-division index idiv is set to 0, the
sub-division structure is ignored. If idiv >
0, the idivth
sub-division will be addressed if the set has been initialized with
dssdb. If not, an error is reported.
putsdb transfers the content of
bufferr to a relative position of a dataset
name on a database identified by
handle. size data elements of
the buffer are transferred to the database
starting at the dataset offset ipos.
ipos is counted in data elements, the count
starting with 1. putsdb only works for dataset
types I, J, E, C, F, Z, and U. putsdb does not
support K sets (characters).
putkdb transfers the content of the
character string buffer to a dataset.
putkdb only works for dataset types K
(character strings).
handleDatabase handle (input). The file handle
handle may not exceed the maximum number of
simultaneously open databases.
nameName of dataset (input). The string may not exceed the maximum dataset name length.
idivSub-division number (input). idiv
must be greater than or equal to 0.
bufferData buffer from which data are copied to the database.
typeDataset type (input). Dummy variable in case of
putkdb.
iposDataset offset, count starting at relative word
address 1 (input). putsdb only.
sizeNumber of data elements to be transferred (input).
statusStatus code returned (output). Upon successful completion of the operation, the status value 0 is returned. A negative value is returned, if an error has been detected. A positive value is returned, if a warning has been issued. See MemCom error codes.