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

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 save with the early bird rate—just $795!

Register now

Discussion stats
  • 1 reply
  • 1110 views
  • 0 likes
  • 2 in conversation