MemCom Reference Manual > MemCom C API Manual Pages > Database Manager Functions > mcDBprintSet

Name

mcDBprintSet — Print dataset

Synopsis

#include <stdio.h>
#include <memcom.h>

int mcDBprintSet(int handle, const char* name, FILE* out);

Description

mcDBprintSet prints the contents of the dataset identified by handle and name to the stream out. If completed successfully, the function returns 0. Otherwise, a negative value indicating the MemCom error number is returned.

Note: In the current version of mcDBprintSet all data elements are printed.

Parameters

handle

Database handle (input).

name

Name of dataset to be printed (input). The dataset name may contain shell wild card pattern matching characters, the pattern matching mechanism being the same as the one found in the UNIX Bourne shell. If all datasets are to be printed, set pattern to "*" .

out

Output stream (input). If set to NULL, stdout will be selected.

Bugs

In the current version of mcDBprintSet all data elements are printed, i.e there is no selective output available.

The column formats are fixed, i.e 12 digits wide for I and E data, and 22 digits wide for J and F data.