MemCom Reference Manual > MemCom ftn Fortran API > Database Manager (DB) > mcf_db_put_stream

Name

mcf_db_put_stream — Write to stream (Fortran API)

Synopsis

subroutine mcf_db_put_stream(handle,address,size,
                             buffer,status)

subroutine mcf_db_put_stream_typed(handle,address,type,
                             size,buffer,status)

integer*4 handle
mcf_off address
character*4 type
mcf_size size
void buffer(*)
integer*4 status

Description

mcf_stream_put writes a contiguous number of bytes from a user buffer to a file starting at a given file address. mcf_stream_put_typed writes a contiguous number of data elements of type I, J, E, D, C, Z from a user buffer to a file starting at a given file address.

Parameters

handle

Handle of database file on which the set(s) reside (input).

address

Byte address of file identified by handle at which the write operation starts (input).

type

Data type (input). Character string containing "I","J", "E", "D", "C", or "Z".

size

Logical number of data elements to be transferred (input).

buffer

Data buffer (input).

status

Status 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.