BookmarkSubscribeRSS Feed
jmcclung78
Calcite | Level 5

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

4 REPLIES 4
ballardw
Super User

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.

jmcclung78
Calcite | Level 5

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;

ballardw
Super User

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

jmcclung78
Calcite | Level 5

Attached is what the result set looks like.

 

Thanks,

Jeremy

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1619 views
  • 0 likes
  • 2 in conversation