EGL library lobLib
The lobLib system library provides support functions for large objects (BLOB and CLOB types).
The next table lists the functions in lobLib.
| System function/Invocation | Description |
|---|---|
attachBlobToFile( |
Associates a specified file with a BLOB variable, but does not write to the file. |
attachBlobToTempFile( |
Associates a unique, temporary system file with a BLOB variable, but does not write to the file. |
attachClobToFile( |
Associates a specified file with a CLOB variable, but does not write to the file. |
attachClobToTempFile( |
Associates a unique, temporary system file with a CLOB variable, but does not write to the file. |
freeBlob( |
Releases the resources that a BLOB variable uses. |
freeClob( |
Releases the resources that a CLOB variable uses. |
result = getBlobLen( |
Returns the number of bytes in the value that a BLOB variable references. |
result = getClobLen( |
Returns the number of characters that a CLOB variable references. |
result = getStrFromClob( |
Returns a string that corresponds to the value that a CLOB variable references. |
result = getSubStrFromClob( | Returns a substring from the value that a CLOB variable references. |
loadBlobFromFile( |
Copies the data from a specified file to the memory area that a BLOB variable references. |
loadClobFromFile( |
Copies the data from a specified file to a memory area that a CLOB variable references. |
setClobFromString( |
Copies a string into the memory area that a CLOB variable references. |
setClobFromStringAtPosition( | Copies a string into a memory area that a CLOB variable references, starting at a specified position in the memory area. |
truncateBlob( |
Truncates the value that a BLOB variable references. |
truncateClob( |
Truncates the value that a CLOB variable references. |
updateBlobToFile( |
Copies the data that a BLOB variable references into a specified file. |
updateClobToFile( |
Copies the data that a CLOB variable references into a specified file. |
Compatibility
| Platform | Issue |
|---|---|
| COBOL generation | Large object types BLOB and CLOB are not supported for COBOL generation. |