MemCom Reference Manual > MemCom (Old) Fortran77 API > The Dynamic Memory Manager (DMM) > dmmput

Name

dmmput, dmmputs — Write dataset to database

Description

dmmput writes a dataset residing in the Dynamic Memory buffer to a database. It performs the same operation as the database manager function putdb, however, data are directly written from the Dynamic Memory buffer to the database. dmmputs performs the same operation as dmmput, but it only writes a selected number of data elements.

Specification (F77)

subroutine dmmput(handle, name, idiv, nw, type, ident, status)
integer*4 handle
characte*(*) name
integer*4 idiv
chatacer*4 type
integer*4 ident
integer*4 status

subroutine dmmputs(handle,name, ipos, size, type, ident, status)
integer*4 handle
characte*(*) name
integer*4 ipos
integer*4 size
chatacer*4 type
integer*4 ident
integer*4 status

Parameters

handle

Database handle (input). The file handle handle may not exceed the maximum number of simultaneously open databases.

name

Dataset name (input).The string may not exceed the maximum dataset name length.

ipos

Offset within dataset name (input), dmmputs only. istart is counted in number of data elements.

idiv

Subdivision number (input). Ignored if the dataset is not assigned to a database by setting handle to 0.

size

Number of data elements to be transferred (input).

type

Dataset type (input).

ident

DMM identifier of the dataset to be copied to the database (input).

status

Status code returned (output). A value of 0 indicates normal completion of the operation. A negative value indicates an error. A positive value indicates a warning. See MemCom error codes.