BookmarkSubscribeRSS Feed
jrichardson134
Calcite | Level 5

Maybe this is it?

PROC SQL;
CREATE TABLE WORK.query AS
SELECT 'Do you celebrate?'n , 'Typical Meat'n , 'How is it prepared?'n , 'What kind of stuffing?'n , 'What kind of cranberry sauce?'n , 'Do you have gravy?'n , 'Corn Served'n , 'Green beans served'n , 'Mashed potatoes served'n , 'Rolls/biscuits'n , 'Yams/Sweet Pot'n , 'Apple pie'n , 'pecan pie'n , 'pumpkin pie'n , 'pray before dinner?'n , 'Home or travel?'n , 'Watch Macy''s parade?'n , 'Age cutoff'n , 'Meet up with hometown friends?'n , 'Attend friendsgiving?'n , 'Shop black Friday?'n , 'Work in retail?'n , 'Area you live?'n , Age , 'Gender?'n , 'Combined monthly income'n , 'US Region'n FROM IS3310.IRP;
RUN;
QUIT;

PROC DATASETS NOLIST NODETAILS;
CONTENTS DATA=WORK.query OUT=WORK.details;
RUN;

PROC PRINT DATA=WORK.details;
RUN;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 15 replies
  • 2697 views
  • 0 likes
  • 3 in conversation