BookmarkSubscribeRSS Feed
Rose
Calcite | Level 5
I was trying to create a temperory table from a SAS dataset using proc sql.
The code was like

proc sql ;
create table t1 as
select columnA from tableA;
quit;

I got the error ERROR: CLI cursor fetch error: [SAS/ACCESS to SQL Server][ODBC SQL Server Driver]Unicode conversion failed.

Also an error message box saying Unable to read SAS report file.

Please help on this...
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
You may have 2 different issues. The SAS Report message is outlined in this Tech Support note (are you using EG???):
http://support.sas.com/kb/39/198.html

If you search on support.sas.com using the search string:
CLI cursor fetch error

you will come up with over 30 hits. These are a few notes from the first hits:
http://support.sas.com/kb/13/396.html
http://support.sas.com/kb/8/642.html

cynthia
Ksharp
Super User
From your log ,there is some illegal character for your SAS.
And I also meet this problem before.

Can you extract some first several observations from this dataset successfully? Such as

[pre]
data temp;
set tableA(obs=2);
run;
[/pre]

If It can. Then use
[pre]
proc report data=tableA nowd out=New_TableA(drop=_break_);
column coulmnA;
define coulmnA/display;
run;
[/pre]


to transfer to new SAS.

This is just a.recommendation


Ksharp
Rose
Calcite | Level 5
Thanks for the input.. I created a temperory dataset with required columns only. Then used that dataset in my query. It worked fine without the error..

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1882 views
  • 0 likes
  • 3 in conversation