02-04-2014 05:24 AM
I am trying to load UTF8 data using SAS Bulk Loader and have following questions:
1. SAS Oracle Bulk Loader uses SQLLDR to bulk load data into Oracle. Is there a way to load UTF8 data with the bulk loader?
2. For loading UTF8 data using SQLLDR, there is an SQLLDR option 'CHARACTERSET UTF8', but does somebody knows how to pass this parameter using SAS Bulk Loader Option? passing it in BL_OPTIONS does not works and generates error
02-04-2014 06:29 AM
Perhaps I'm out on a limb here, but under what encoding are you running the session in, and in what encoding is the source data (SAS data set) in, prior to the bulk load.?
One could hope that if you have a "clean" UTF8 set up in SAS, the bulk.load file will also use that encoding?
02-04-2014 06:35 AM
SAS is running in UTF8 and Oracle too is UTF8. The native characters can be seen properly in the temporary dat file created by SAS but after SQLLDR loads data into Oracle, the native characters gets converted to square boxes.
NOTE: As an alternative approach I tried exporting the dataset into a CSV as UTF8 encoding and loading data in Oracle using Oracle External Location, It maintains the native characters and are visible correctly in Oracle.