03-05-2016 02:01 AM
I' trying to pull the data from teradata using Proc SQL procedure. the column lengths are getting double after reading the data into SAS. Example: Name having 20 length in teradata is getting double 40 in sas datasest.
In one of my dataset having 63K length in terradata(620 coulmns) and I'm not able to read this Teradata table into sas because all the var char types are getting duble size and then it is exeding the teradata coulmn 64K length limataion. then i spilt the coulmns 100 for wach table and merging to one SAS dataset. in this cases also dataset size is coming upto 50GB. i have already used compress=yes option. I want to reduce the size atleast
Please kindly advise me how to solve this issue.
Thanks in advance!
03-05-2016 03:36 AM
03-05-2016 05:09 AM - edited 03-06-2016 02:48 AM
The proc contents of SAS will Show the information after the SAS/ACCESS and TD-Odbc did the translation.
Most likey a unicode (TD is having UTF16 not UTF8) issue. The check the table TD definitions use the TD-admin client is the most easy one.
There are three places to make Unicode a permanent approach for multilangual work.
1/ Allow the run-time envitonment of SAS being DBCS/utf8 (it are a difterent set of executables)
2/ Set the SAS-session environment using the encoding you are needing.
You could keep also being runnig english US single byte Ascii (telex age). When you are doing that your processing will notify all not translatable characters as like native hindi .... (kanji).
The whole mindset is letting go a single-byte is a single character. A single character can occupy 1-4 bytes (variable) wiht utf8.
MS office, Web is commonly using utf8, only archaic administration systems still on lantin-1 (7 15 etc).
Within Teradata U-16 is used a slightly different unicode version. The Teradata ODBC adapter has to be configured on what type of outgoing interface (latin-1 utf8 is expected) see the documents:
- " ODBC Driver for Teradata Application Development - Teradata Extensions to the ODBC Standard"
- Teradata " International Character Set Support"
(google gives me the docs not the links)
03-05-2016 09:21 PM