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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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