Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I ' m very beginner in SAS and need help to load and create data set in program. I ' m working in SAS

Hello! I'm very beginner in SAS and need help to load and create data set in program. I'm working in SAS OnDemand for Academics. So I have big file in xls and in cvs formats, loaded in my SAS files folder. So my codes
*Reading data in;
Proc import datafile ='/home/XXXXXXXXXX.csv'
out=mydata dbms=csv replace;
getnames=no;
run;
*print the data to the screen to see if they are okay;
proc print data= mydata;
run;
and what I got :
SAS ?o+ Studio
SAS Programmer
Sign Out
Server Files and Folders
Tasks and Utilities
Snippets
Libraries
My Libraries
File Shortcuts
CODE LOG RESULTS OUTPUT DATA
Table: WORK.MYDATA grad| View: Column names grad S5| Filter: (none)
\table[[Columns,,Total rows: 3110 Total columns: 65,,Rows 1-100,\table[[=>1
now I need to create new data set by sorting only specific states and variables.
Could you help me with codes and how to save my new data set?
Thank you!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions