DATA Step, Macro, Functions and more

Date infile step into a permanent library

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

Date infile step into a permanent library

I'm trying to libname with a data infile statement, to avoid storing everything in work.

I tried the following code, but it didn't work. 

libname Swine 'C:\sally';run;
Data Swineflu;
Infile 'C:\sally\SwineFlu2009.dat' dsd dlm='09'x missover;
input 	First_Case_ID 
		Case_Continent_ID
		Country $
		First_Case_Date
		April_Cases
		May_Cases
		June_Cases
		July_Cases
		August_Cases
		Last_Cases_August9
		First_Death_ID
		Death_Continent_ID
		First_Death_Date
		May_Deaths
		June_Deaths
		July_Deaths
		August_Deaths
		September_Deaths
		October_Deaths
		November_Deaths
		December_Deaths
		;
proc print data=Swine.Swineflu;
 
run;

Thank you!


Accepted Solutions
Solution
2 weeks ago
PROC Star
Posts: 1,561

Re: Date infile step into a permanent library

[ Edited ]

did you miss the two

level name prefix in your data statement in the data step?

libname Swine 'C:\sally';run;

 

Data swine.Swineflu;

 

View solution in original post


All Replies
Solution
2 weeks ago
PROC Star
Posts: 1,561

Re: Date infile step into a permanent library

[ Edited ]

did you miss the two

level name prefix in your data statement in the data step?

libname Swine 'C:\sally';run;

 

Data swine.Swineflu;

 

☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 127 views
  • 1 like
  • 2 in conversation