BookmarkSubscribeRSS Feed
dudagottsfritz
Calcite | Level 5

Olá, é usual utilizar query SQL no SAS? Pergunto pois já possuo familiaridade com SQL e gostaria de saber se é um bom caminho começar dessa forma ou seguir com outros comandos no SAS.

1 REPLY 1
SASJedi
Ammonite | Level 13

Sim - eu frequentemente uso SQL no meus codigos SAS. Se já esta familiarizado com SQL, pode usar PROC SQL pra executar suas queries em SQL. Por exemplo:

proc sql;
select Make, avg(MSRP) as AvgPrice
   from sashelp.cars
   group by Make
   having avg(MSRP) > 50000
   order by Make
;
quit;
Check out my Jedi SAS Tricks for SAS Users

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Discussion stats
  • 1 reply
  • 1448 views
  • 0 likes
  • 2 in conversation