BookmarkSubscribeRSS Feed
chrisguhc
Calcite | Level 5

I have been working with SAS.Workspace in C# .NET

 

I have been able to generate passthrough SQL results using:

provider=sas.iomprovider.1; SAS Workspace ID=" + objSAS.UniqueIdentifier

 

I have been able to generate Logs via:

SAS.LanguageService.Submit + FlushLogLines

 

I can also run, execute and generate text results for PROC SQL using:

SAS.LanguageService.Submit +FlushListLines

 

Is there anyway to get tabular or even delimited based results from running PROC SQL  via .NET SAS ?

 

Thanks in advance!

 

 

2 REPLIES 2
Reeza
Super User
Is your PROC SQL doing SELECT only or are you creating tables?
chrisguhc
Calcite | Level 5

Here is an example of what I am trying to run:

proc sql OUTOBS=5;
select * FROM alias.table;

 

I realize I could probably tweak this to run as a Passthrough SQL but I'd really like to have PROC SQL return a datatable or something usable as opposed to just un-parsable text results I currently get.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 314 views
  • 0 likes
  • 2 in conversation