BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ronein
Onyx | Level 15

Hello

I saw this example  of XLSX libname.

I want to ask some questions in order to understabd better:

1-Is the XLSX file name  HRworkbook.xlsx?

2-Is the sheet name where we import data is perm_employees ?

3- I don't see Create table statement, what does it mean? No data set is created here? Just print out screen?

 

libname myhr XLSX "/path/HRworkbook.xlsx";
proc sql;
select lname label="Last Name", empid, start_date format=date9. 
from myhr.perm_employees 
where state="NC";
quit;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
1- Yes.
2- Yes.
3- Yes. Just print out the obs which state="NC" in table myhr.perm_employees . Just like the following code:

proc print data=myhr.perm_employees ;
where state="NC";
run;

View solution in original post

1 REPLY 1
Ksharp
Super User
1- Yes.
2- Yes.
3- Yes. Just print out the obs which state="NC" in table myhr.perm_employees . Just like the following code:

proc print data=myhr.perm_employees ;
where state="NC";
run;
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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