C API Syntax
/* File: sqlutil.h */ /* API: Export */ /* ... */ SQL_API_RC SQL_API_FN sqluexpr ( char * pDataFileName, sqlu_media_list * pLobPathList, sqlu_media_list * pLobFileList, struct sqldcol * pDataDescriptor, struct sqlchar * pActionString, char * pFileType, struct sqlchar * pFileTypeMod, char * pMsgFileName, short CallerAction, struct sqluexpt_out* pOutputInfo, void * pReserved, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlutil.h */ /* API: Export */ /* ... */ SQL_API_RC SQL_API_FN sqlgexpr ( unsigned short DataFileNameLen, unsigned short FileTypeLen, unsigned short MsgFileNameLen, char * pDataFileName, sqlu_media_list * pLobPathList, sqlu_media_list * pLobFileList, struct sqldcol * pDataDescriptor, struct sqlchar * pActionString, char * pFileType, struct sqlchar * pFileTypeMod, char * pMsgFileName, short CallerAction, struct sqluexpt_out* pOutputInfo, void * pReserved, struct sqlca * pSqlca); /* ... */ |
API Parameters
When file space is exhausted on the first path in this list, the API will use the second path, and so on.
For more information, see "SQLU-MEDIA-LIST " in the Administrative API Reference.
When the name space is exhausted using the first name in this list, the API will use the second name, and so on.
For more information, see "SQLU-MEDIA-LIST " in the Administrative API Reference.
When creating LOB files during an export operation, file names are constructed by appending the current base name from this list to the current path (from pLobFilePath), and then appending a 3-digit sequence number. For example, if the current LOB path is the directory /u/foo/lob/path, and the current LOB file name is bar, the created LOB files will be /u/foo/lob/path/bar.001, /u/foo/lob/pah/bar.002, and so on.
For more information, see "SQLDCOL" in the Administrative API Reference.
The columns for the external file (from pDataDescriptor), and the database columns from the SELECT statement, are matched according to their respective list/structure positions. The first column of data selected from the database is placed in the first column of the external file, and its column name is taken from the first element of the external column array.
For more information, see "SQLCHAR" in the Administrative API Reference.
Note: | The syntax that is to be used for typed tables is described in EXPORT Command. |
Not all options can be used with all of the supported file types.
For more information, see "SQLCHAR" in the Administrative API Reference, and File Type Modifiers (Export).
If the initial call or any subsequent call returns and requires the calling application to perform some action prior to completing the requested export operation, the caller action must be set to one of the following:
REXX API Syntax
EXPORT :stmt TO datafile OF filetype [MODIFIED BY :filetmod] [USING :dcoldata] MESSAGES msgfile [ROWS EXPORTED :number] CONTINUE EXPORT STOP EXPORT |
REXX API Parameters
If this parameter is NULL, or a value for dcoldata has not been specified, the utility uses the column names from the database table.