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

Name

mcDBcopySetsel — Copy selected datasets

Synopsis

#include <memcom.h>
int mcDBcopySetsel(int handle1, const char* pattern, int handle2);

Description

mcDBcopySetsel copies selected datasets from the database identified by handle1 to the database identified by handle2. If completed successfully, the function returns 0. Otherwise, a negative value indicating the MemCom error number is returned.

Parameters

handle1

Database handle of database from where sets are to be copied (input).

pattern

String containing pattern of selected sets to be copied (input). To copy all sets of a database, specify "*". Presently only a single set name or * are implemented.

handle2

Database handle of database containing copies of all sets (input).

See also

mcDBcopySet