All COBOL/PL1 load module stubs for the FLAM5 archive record interface. More...
Functions | |
| void | FMRVSN (int *piRtc, int *piSize, char *pcBuffer) |
| Returns version information. | |
| void | FMRABO (int *piRtc, int *piSize, char *pcBuffer) |
| Returns about information. | |
| void | FMRLIC (int *piRtc, int *piSize, char *pcBuffer) |
| Returns the license text. | |
| void | FMRHLP (int *piRtc, char *pcErr, const int *piWhat, const int *piDepth, const int *piPathLen, const char *pcPath, int *piOutLen, char *pcOut) |
| Retrieves help text for an archive or format string parameter. | |
| void | FMRSYN (int *piRtc, char *pcErr, const int *piWhat, const int *piDepth, const int *piPathLen, const char *pcPath, int *piOutLen, char *pcOut) |
| Retrieves syntax information for an archive or format string. | |
| void | FMRCHK (int *piRtc, char *pcErr, const int *piWhat, const int *piStrLen, const char *pcString, int *piOutLen, char *pcOut) |
| Validates an archive or format string. | |
| void | FMROPN (int *piRtc, char *pcErr, void **ppGbl, const int *piSys, const int *piStd, const int *piEnvLen, const char *pcEnv, const int *piLogLen, const char *pcLog) |
| Opens a global session with optional in-memory logging. | |
| void | FMRCLS (int *piRtc, void **ppGbl) |
| Closes a global session. | |
| void | FMRGLG (int *piRtc, void **ppGbl, int *piMaxCod, int *piLogLen, char *pcLog) |
| Retrieves in-memory log messages. | |
| void | FMRCLG (int *piRtc, void **ppGbl) |
| Clears the in-memory log buffer. | |
| void | FMRDLG (int *piRtc, void **ppGbl) |
| Deactivates in-memory logging. | |
| void | FMRRLG (int *piRtc, void **ppGbl) |
| Reactivates in-memory logging. | |
| void | FMROPA (int *piRtc, char *pcErr, void **ppGbl, void **ppHdl, const int *piArcLen, const char *pcArchive, const int *piFmtLen, const char *pcFormat, const int *piNumber) |
| Opens a FLAM5 archive for read or write access. | |
| void | FMRNXM (int *piRtc, char *pcErr, void **ppHdl, const int *piFmtLen, const char *pcFormat) |
| Advances to the next matching member (read mode). | |
| void | FMRLOC (int *piRtc, char *pcErr, void **ppHdl, int *piLen, const unsigned char **ppRec, const int *piSkip, void **ppCnv) |
| Locates the next record without copying (zero-copy read). | |
| void | FMRGET (int *piRtc, char *pcErr, void **ppHdl, int *piLen, unsigned char *pcRec, const int *piSkip, void **ppCnv) |
| Reads the next record into a caller-supplied buffer (read mode). | |
| void | FMRNWM (int *piRtc, char *pcErr, void **ppHdl, const int *piFmtLen, const char *pcFormat, const int *piStaFmt, int *piStaLen, char *pcStaBuf) |
| Starts a new member in an open archive (write mode). | |
| void | FMRPUT (int *piRtc, char *pcErr, void **ppHdl, const int *piLen, const unsigned char *pcRec, void **ppCnv) |
| Writes a record or element to the current member (write mode). | |
| void | FMRFLU (int *piRtc, char *pcErr, void **ppHdl, const int *piFinal, const int *piForce) |
| Flushes buffered records to the archive (write mode). | |
| void | FMRCLA (int *piRtc, char *pcErr, void **ppHdl, const int *piSuccess, const int *piStaFmt, int *piStaLen, char *pcStaBuf) |
| Closes a FLAM5 archive and releases all resources. | |
| void | FMRGAN (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the current archive file name. | |
| void | FMRGMN (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the name of the current archive member. | |
| void | FMRGTN (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the current table name. | |
| void | FMRGMS (int *piRtc, void **ppHdl, const int *piCurrent, int *piLen, char *pcBuf) |
| Returns the member state string. | |
| void | FMRSTN (int *piRtc, char *pcErr, void **ppHdl, const int *piNameLen, const char *pcName) |
| Sets the current table name (write mode). | |
| void | FMRSMN (int *piRtc, char *pcErr, void **ppHdl, const int *piNameLen, const char *pcName) |
| Sets the current member name (write mode). | |
| void | FMRSMS (int *piRtc, char *pcErr, void **ppHdl, const int *piStateLen, const char *pcState) |
| Sets member state attributes (write mode). | |
| void | FMRMSG (int *piRtc, const int *piCode, int *piLen, char *pcBuf) |
| Maps a FLAM return code to a short English message. | |
| void | FMRGAC (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the archive comment string. | |
| void | FMRGAH (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the binary user header from the archive. | |
| void | FMRGAT (int *piRtc, void **ppHdl, int *piVal) |
| Returns the archive type identifier. | |
| void | FMRGMC (int *piRtc, void **ppHdl, int *piVal) |
| Returns the number of members in the archive. | |
| void | FMRGMM (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the user comment of the last read member. | |
| void | FMRGMH (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the binary user header of the last read member. | |
| void | FMRGAV (int *piRtc, void **ppHdl, int *piVal) |
| Returns the archive format version. | |
| void | FMRGSM (int *piRtc, void **ppHdl, int *piVal) |
| Returns the archive save mode. | |
| void | FMRGFN (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns the filter name for the current member (DECO path). | |
| void | FMRSAC (int *piRtc, char *pcErr, void **ppHdl, const int *piCmtLen, const char *pcCmt) |
| Sets the archive comment (write mode). | |
| void | FMRSMC (int *piRtc, char *pcErr, void **ppHdl, const int *piCmtLen, const char *pcCmt) |
| Sets the member comment (write mode). | |
| void | FMRSAH (int *piRtc, char *pcErr, void **ppHdl, const int *piLen, const unsigned char *pcHdr) |
| Sets the archive-level binary user header (write mode). | |
| void | FMRSMH (int *piRtc, char *pcErr, void **ppHdl, const int *piLen, const unsigned char *pcHdr) |
| Sets the member-level binary user header (write mode). | |
| void | FMRGAI (int *piRtc, void **ppHdl, int *piLen, char *pcBuf) |
| Returns a human-readable description of the open archive. | |
| void | FMRCAI (int *piRtc, char *pcErr, void **ppHdl, int *piLev, int *piTotal, int *piSuccess, int *piErrors, int *piReason) |
| Performs an integrity check on the open archive. | |
| void | FMRGMT (int *piRtc, void **ppHdl, long long *psiRecCnt, long long *psiSegCnt, long long *psiElmCnt, long long *psiOrgLen, long long *psiCmpLen) |
| Returns member statistics for the currently open member. | |
All COBOL/PL1 load module stubs for the FLAM5 archive record interface.
|
extern |
Returns version information.
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in,out] | piSize | Buffer size (INTEGER) |
| [out] | pcBuffer | Version string buffer (STRING) |
|
extern |
Returns about information.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in,out] | piSize | Buffer size (INTEGER) |
| [out] | pcBuffer | About string buffer (STRING) |
|
extern |
Returns the license text.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in,out] | piSize | Buffer size (INTEGER) |
| [out] | pcBuffer | License string buffer (STRING) |
|
extern |
Retrieves help text for an archive or format string parameter.
To select the parameter string for which to request help information, the parameter piWhat must be set to one of the following values:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | piWhat | Parameter type constant (INTEGER; see list above) |
| [in] | piDepth | Help hierarchy depth (INTEGER; 0 = all) |
| [in] | piPathLen | Length of pcPath in bytes (INTEGER); use -1 for null-terminated string |
| [in] | pcPath | Optional path within parameter tree (STRING) |
| [in,out] | piOutLen | Output buffer size on entry; bytes written on exit (INTEGER) |
| [out] | pcOut | Output buffer for help text (STRING) |
|
extern |
Retrieves syntax information for an archive or format string.
To select the parameter string for which to request syntax information, the parameter piWhat must be set to one of the following values:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | piWhat | Parameter type constant (INTEGER; see list above) |
| [in] | piDepth | Syntax hierarchy depth (INTEGER) |
| [in] | piPathLen | Length of pcPath (INTEGER; -1 = null-terminated) |
| [in] | pcPath | Optional path within parameter tree (STRING) |
| [in,out] | piOutLen | Output buffer size / bytes written (INTEGER) |
| [out] | pcOut | Output buffer for syntax text (STRING) |
|
extern |
Validates an archive or format string.
To select the grammar against which to validate, the parameter piWhat must be set to one of the following values:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | piWhat | Parameter type constant (INTEGER; see list above) |
| [in] | piStrLen | Length of pcString (INTEGER; -1 = null-terminated) |
| [in] | pcString | String to validate (STRING) |
| [in,out] | piOutLen | Output buffer size / bytes written (INTEGER) |
| [out] | pcOut | Output buffer for check results (STRING) |
|
extern |
Opens a global session with optional in-memory logging.
Calling this function is optional. When ppGbl is NULL in FMROPA, a private session is created automatically.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [out] | ppGbl | Receives the global session handle (POINTER) |
| [in] | piSys | Non-zero to load system variables (INTEGER) |
| [in] | piStd | Non-zero to load standard environment (INTEGER) |
| [in] | piEnvLen | Length of pcEnv (INTEGER; -1 = null-terminated) |
| [in] | pcEnv | Optional environment assignments (STRING) or NULL |
| [in] | piLogLen | Length of pcLog (INTEGER; -1 = null-terminated) |
| [in] | pcLog | Optional CLP log string (STRING) or NULL |
|
extern |
Closes a global session.
Releases all resources allocated by FMROPN. Sets *ppGbl to NULL.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppGbl | Global session handle (POINTER) |
|
extern |
Retrieves in-memory log messages.
Copies the current log buffer into the caller-supplied pcLog buffer. The value written to piRtc is the maximum error code recorded since the last clear (same as the value written to piMaxCod).
| [out] | piRtc | Return code (maximum observed error code); must not be NULL. |
| [in] | ppGbl | Global session handle (POINTER) |
| [out] | piMaxCod | Receives the maximum error code observed (INTEGER) |
| [in,out] | piLogLen | Log buffer size / bytes copied (INTEGER) |
| [out] | pcLog | Buffer for the log text (STRING) |
|
extern |
Clears the in-memory log buffer.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppGbl | Global session handle (POINTER) |
|
extern |
Deactivates in-memory logging.
| [out] | piRtc | Return code; always FLMRTC_OK; must not be NULL. |
| [in] | ppGbl | Global session handle (POINTER) |
|
extern |
Reactivates in-memory logging.
| [out] | piRtc | Return code; always FLMRTC_OK; must not be NULL. |
| [in] | ppGbl | Global session handle (POINTER) |
|
extern |
Opens a FLAM5 archive for read or write access.
| [out] | piRtc | Receives the return code (INTEGER) |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppGbl | Global session handle (POINTER) or NULL |
| [out] | ppHdl | Receives the archive handle (POINTER) |
| [in] | piArcLen | Length of pcArchive (INTEGER; -1 = null-terminated) |
| [in] | pcArchive | Archive string (STRING) |
| [in] | piFmtLen | Length of pcFormat (INTEGER; -1 = null-terminated) |
| [in] | pcFormat | Format string (STRING) or NULL for default |
| [in] | piNumber | Write-only batch size override (INTEGER): max records per matrix (REC/FL4/TAB; default is ~1 MiB/matrix, min 4, max ~1M), element rows per flush (ELM; default 1024), or I/O buffer bytes (other formats; default 1 MB); 0 = default; ignored when reading |
|
extern |
Advances to the next matching member (read mode).
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piFmtLen | Length of pcFormat (INTEGER; -1 = null-terminated) |
| [in] | pcFormat | Format string (STRING) or NULL to retain current |
|
extern |
Locates the next record without copying (zero-copy read).
The located data is valid until the next call to FMRLOC, FMRGET, FMRNXM, or FMRCLA on the same handle.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | piLen | Receives the record length in bytes (INTEGER) |
| [out] | ppRec | Receives pointer into the internal buffer (POINTER) |
| [in] | piSkip | Element type to skip, or FLMELM_NOSKIP (INTEGER) |
| [in] | ppCnv | Optional element converter handle (POINTER) or NULL |
|
extern |
Reads the next record into a caller-supplied buffer (read mode).
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size on entry; record length on exit (INTEGER) |
| [out] | pcRec | Caller-supplied buffer for record data (STRING) |
| [in] | piSkip | Element type to skip, or FLMELM_NOSKIP (INTEGER) |
| [in] | ppCnv | Optional element converter handle (POINTER) or NULL |
|
extern |
Starts a new member in an open archive (write mode).
Finalizes the current member and starts a new empty member within the same archive handle. Call FMRSMN or FMRSMS afterwards to set metadata for the new member before writing the first record.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piFmtLen | Length of pcFormat (INTEGER; -1 = null-terminated) |
| [in] | pcFormat | Format string (STRING) or NULL to retain current |
| [in] | piStaFmt | Statistics format constant (INTEGER) |
| [in,out] | piStaLen | Statistics buffer size / bytes written (INTEGER) |
| [out] | pcStaBuf | Statistics buffer (STRING) or NULL |
|
extern |
Writes a record or element to the current member (write mode).
Submits one record or element to the internal write buffer.
In format.element() mode pcRec must point to a serialized FlmElmRec0 structure. The following constraints apply for table-format elements (matrix type >= FLMMAT_TYP_TABELM):
uiTyp = FLMELM_TYPTAB_HEADER | (colCnt<<8)) MUST be submitted before the first data element and before every format change. The header element is not counted as a data row.uiTyp >> 8).See also siFmrPut() in FLMREC.h for the full element-mode rules.
| [out] | piRtc | Receives the return code (INTEGER) |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piLen | Record or element structure length in bytes (INTEGER) |
| [in] | pcRec | Record data or serialized FlmElmRec0 (STRING) |
| [in] | ppCnv | Optional element converter handle (POINTER) or NULL |
|
extern |
Flushes buffered records to the archive (write mode).
In format.element() mode with table formats (matrix type >= FLMMAT_TYP_TABELM): the pending element count must be a complete multiple of the current column count. A partial row causes the complete rows to be flushed and FLMRTC_ITF to be returned.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piFinal | Non-zero to finalize the current member (INTEGER) |
| [in] | piForce | Non-zero to force flush even if no data pending (INTEGER) |
|
extern |
Closes a FLAM5 archive and releases all resources.
Sets *ppHdl to NULL after close.
| [out] | piRtc | Receives the return code (INTEGER) |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in,out] | ppHdl | Archive handle (POINTER); set to NULL on close |
| [in] | piSuccess | Non-zero if operation was successful (INTEGER) |
| [in] | piStaFmt | Statistics format constant (INTEGER) |
| [in,out] | piStaLen | Statistics buffer size / bytes written (INTEGER) |
| [out] | pcStaBuf | Statistics buffer (STRING) or NULL |
|
extern |
Returns the current archive file name.
Copies the archive file path into the caller-supplied buffer.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the archive name (STRING) |
|
extern |
Returns the name of the current archive member.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the member name (STRING) |
|
extern |
Returns the current table name.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the table name (STRING) |
|
extern |
Returns the member state string.
Copies the state string (e.g. "STATE(ORGF='a.txt' RECF=FB RECL=80)") into the caller-supplied buffer.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piCurrent | Non-zero for current (modified) state (INTEGER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the state string (STRING) |
|
extern |
Sets the current table name (write mode).
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piNameLen | Length of pcName (INTEGER; -1 = null-terminated) |
| [in] | pcName | Null-terminated table name (STRING) |
|
extern |
Sets the current member name (write mode).
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piNameLen | Length of pcName (INTEGER; -1 = null-terminated) |
| [in] | pcName | Member (file) name (STRING) |
|
extern |
Sets member state attributes (write mode).
| [out] | piRtc | Receives the return code (INTEGER) |
| [in] | pcErr | Error trace buffer (FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piStateLen | Length of pcState (INTEGER; -1 = null-terminated) |
| [in] | pcState | State string, e.g. "STATE(ORGF='a.txt')" (STRING) |
|
extern |
Maps a FLAM return code to a short English message.
| [out] | piRtc | Receives the return code of this call (INTEGER) |
| [in] | piCode | FLAM return code to look up (INTEGER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the message (STRING) |
|
extern |
Returns the archive comment string.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the comment string (STRING) |
|
extern |
Returns the binary user header from the archive.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size on entry / bytes copied on exit (INTEGER) |
| [out] | pcBuf | Output buffer for the header bytes (STRING) |
|
extern |
Returns the archive type identifier.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | piVal | Receives the archive type constant (INTEGER) |
|
extern |
Returns the number of members in the archive.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | piVal | Receives the member count (INTEGER) |
|
extern |
Returns the user comment of the last read member.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the comment string (STRING) |
|
extern |
Returns the binary user header of the last read member.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the header bytes (STRING) |
|
extern |
Returns the archive format version.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | piVal | Receives the archive version number (INTEGER) |
|
extern |
Returns the archive save mode.
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | piVal | Receives the save mode constant (INTEGER) |
|
extern |
Returns the filter name for the current member (DECO path).
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size / bytes copied (INTEGER) |
| [out] | pcBuf | Output buffer for the filter name (STRING) |
|
extern |
Sets the archive comment (write mode).
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (STRING, FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piCmtLen | Length of comment string (INTEGER) |
| [in] | pcCmt | Comment string (STRING) |
|
extern |
Sets the member comment (write mode).
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (STRING, FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piCmtLen | Length of comment string (INTEGER) |
| [in] | pcCmt | Comment string (STRING) |
|
extern |
Sets the archive-level binary user header (write mode).
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (STRING, FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piLen | Length of header data in bytes (INTEGER) |
| [in] | pcHdr | Binary header data (STRING) |
|
extern |
Sets the member-level binary user header (write mode).
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (STRING, FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piLen | Length of header data in bytes (INTEGER) |
| [in] | pcHdr | Binary header data (STRING) |
|
extern |
Returns a human-readable description of the open archive.
Fills pcBuf with a null-terminated info string (archive type, compression/encryption suites, main ID, FKME ID). On return piLen contains the number of bytes written (strlen result, not counting the null terminator).
If ppHdl points to a NULL handle or no archive is open, the sentinel string "--NULL--" is written into pcBuf.
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [in,out] | piLen | Buffer size in bytes on input; bytes written on output (INTEGER) |
| [out] | pcBuf | Output buffer for the null-terminated info string (STRING) |
|
extern |
Performs an integrity check on the open archive.
Checks directory consistency and optionally verifies member data depending on piLev. On return the three count parameters hold the total members checked, the number that passed, and the number with errors.
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | pcErr | Error trace buffer (STRING, FLMERR_SIZ bytes) or NULL |
| [in] | ppHdl | Archive handle (POINTER) |
| [in] | piLev | Check level: 1=directory, 2=verify data (INTEGER) |
| [out] | piTotal | Total members checked (INTEGER) |
| [out] | piSuccess | Members without errors (INTEGER) |
| [out] | piErrors | Members with errors (INTEGER) |
| [out] | piReason | Last internal reason code on failure, 0 if clean (INTEGER) |
|
extern |
Returns member statistics for the currently open member.
Fills five 64-bit out-parameters with statistics from the nucleus status block stored in the archive directory entry. Valid after FMROPA or FMRNXM.
All parameters are 8-byte signed binary integers. COBOL declaration: PIC S9(18) COMP
The values reflect the state at write time. After partial updates, inserts, or deletes the counts may no longer match the actual content.
COBOL:
| [out] | piRtc | Return code; set even on error; must not be NULL. |
| [in] | ppHdl | Archive handle (POINTER) |
| [out] | psiRecCnt | Record count (PIC S9(18) COMP) |
| [out] | psiSegCnt | Segment count (PIC S9(18) COMP) |
| [out] | psiElmCnt | Element count (PIC S9(18) COMP) |
| [out] | psiOrgLen | Original (uncompressed) size in bytes (PIC S9(18) COMP) |
| [out] | psiCmpLen | Compressed size in bytes (PIC S9(18) COMP) |