DATA Step, Macro, Functions and more

Sybase data issue

Reply
New Contributor
Posts: 3

Sybase data issue

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

Super User
Posts: 10,538

Re: Sybase data issue

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.

New Contributor
Posts: 3

Re: Sybase data issue

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;

Super User
Posts: 10,538

Re: Sybase data issue

If you run proc contents on paas.CDOC_TABLE what you do get for results?

New Contributor
Posts: 3

Re: Sybase data issue

Attached is what the result set looks like.

 

Thanks,

Jeremy

 

 

Ask a Question
Discussion stats
  • 4 replies
  • 295 views
  • 0 likes
  • 2 in conversation