#include <as400_protos.h> int SQLOverrideCCSID400(int newCCSID);
Note: This function can only be used in an IBM® i PASE program. See the IBM PASE for i topic collection for more information about creating IBM PASE for i programs.
The SQLOverrideCCSID400() function allows an IBM PASE for i program to specify a Coded Character Set Identifier (CCSID) used to convert character data arguments and results on IBM PASE for i SQL Call Level Interface (CLI) functions.
No special authorities required.
The function result is zero for success, or -1 for an error that is further qualified by an errno value.
At least these errno values can be returned:
[EINVAL] | The conversion between newCCSID and the IBM i
job default CCSID is not supported. |
[ENFILE] | A converter could not be opened because the
maximum number of files in the system are already opened. |
[EMFILE] | A converter could not be opened because the maximum number of files are already opened. |