DATA Step, Macro, Functions and more

creating a sas dataset using proc

Accepted Solution Solved
Reply
Contributor rk7
Contributor
Posts: 28
Accepted Solution

creating a sas dataset using proc

[ Edited ]

can anyone help me with this

 

* Using PROC ??, create a SAS data set named 'music' using data file (Bands.csv);
* Use variables: Do you need?
* Add Title: Customers at each Gig!
* HINT: use PROC

 

can you also send the link to explanation of concept in sas documentation


Accepted Solutions
Solution
‎12-15-2017 11:00 AM
Super User
Posts: 3,770

Re: creating a sas dataset using proc


All Replies
PROC Star
Posts: 1,190

Re: creating a sas dataset using proc

So you have to create a data set using just some procedure?

 

In that case use PROC SQL like this

 

proc sql;
	create table MyTable as
	select Name
	      ,Age
	from sashelp.class;
quit;
Solution
‎12-15-2017 11:00 AM
Super User
Posts: 3,770

Re: creating a sas dataset using proc

This sounds like homework. Here is a link to the procedure that should help you:

http://documentation.sas.com/?docsetId=proc&docsetTarget=n1qn5sclnu2l9dn1w61ifw8wqhts.htm&docsetVers...

Super User
Posts: 9,600

Re: creating a sas dataset using proc

I guess you are looking for proc import.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor rk7
Contributor
Posts: 28

Re: creating a sas dataset using proc

Posted in reply to KurtBremser

thanks

Super User
Posts: 22,857

Re: creating a sas dataset using proc


rk7 wrote:

can anyone help me with this

 

* Using PROC ??, create a SAS data set named 'music' using data file (Bands.csv);
* Use variables: Do you need?
* Add Title: Customers at each Gig!
* HINT: use PROC

 

can you also send the link to explanation of concept in sas documentation


I think you're looking for how to import a file. 

Please see the videos here that go over several ways to import a CSV file. 

http://video.sas.com/#category/videos/sas-analytics-u

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 156 views
  • 3 likes
  • 5 in conversation