I am successfully connecting to a Sybase database. However, the query only pulls data back for those columns whose data type is not char. Has anyone else expierienced this issue?
Thanks,
Jeremy
Show the code of the query at least. Insufficient information though the likely cause will be something in the way you built the query or none of the variables are char.
Here is the code:
%include "P:\Jeremy\SAS\PAASLogin.sas";
libname paas odbc dsn="PAAS Prod" uid=&user pwd=&password;
proc sql;
drop table work.PAASTest;
quit;
PROC SQL;
create table work.PAASTest as
(Select *
from paas.CDOC_TABLE A
Where A.CUST_CODE='FRA000310'
);
quit;
data work.PAASTest;
set PAASTest;
run;
If you run proc contents on paas.CDOC_TABLE what you do get for results?
Attached is what the result set looks like.
Thanks,
Jeremy
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.