sqludf_ccsid()--SQL LOB locator ccsid

Start of change

  Syntax
 #include <sqludf.h>

 extern int SQL_API_FN sqludf_ccsid(   
    udf_locator * udfloc_p,                                       
    long *        return_ccsid_p)

  Service Program Name: QSYS/QSQAPIS

  Default Public Authority: *USE

  Threadsafe: Yes

The sqludf_ccsid() function returns the ccsid of the LOB data represented by a LOB locator.


Parameters

udfloc_p
(Input) Pointer to the LOB locator value.

return_ccsid_p
(Input/Output) Pointer to the ccsid of the LOB data represented by the LOB locator.


Authorities

No authorization is required.


Return Value

sqludf_ccsid()

returns an integer. Possible values are:

0
sqludf_ccsid() was successful. The information is returned in the buffer pointed to by return_ccsid_p.

-3
squdf_ccsid() was not successful. An invalid parameter was passed into the function.

-423
squdf_ccsid() was not successful. The udfloc_p parameter points to an invalid locator value.

-901
sqludf_ccsid() was not successful. An SQL system error has occurred.

-7034
sqludf_ccsid() was not successful. LOB locators are not allowed with COMMIT(*NONE).


Error Messages


Usage Notes

  1. This API is used to find out the ccsid of a LOB value when it receives a locator.

Related Information


End of change
API introduced: V7R2

[ Back to top | Database and File APIs | APIs by category ]