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;

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 lock in 2025 pricing—just $495!

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
  • 2998 views
  • 0 likes
  • 3 in conversation