BookmarkSubscribeRSS Feed
rajm895
Calcite | Level 5
I have col1 to col12 in my dataset and i want to select all of these variables in the proc sql step, is it possible to do it

for example if it was a datastep i would do keep col1-col12,

proc sql;
create table x as
select col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12, y.*
from x, y
on x.pt=y.pt etc etc
quit;

Is there a way to include col1 to col12 in a simpler way

Thank you very much!
1 REPLY 1
Peter_C
Rhodochrosite | Level 12
if a data step does the job better, why use sql?

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1196 views
  • 0 likes
  • 2 in conversation