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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 335 views
  • 0 likes
  • 2 in conversation