BookmarkSubscribeRSS Feed
Shrutibhatnagar
Obsidian | Level 7

libname class1 '/folders/myfolders/mysas';
proc import datafile='/folders/myfolders/mysas/smb.csv'
dbms=csv out=smb replace;
libname class2 '/folders/myfolders/mysas';
proc import datafile='/folders/myfolders/mysas/churners_and_labels.xls'
dbms=xls out=churners replace;sheet=labels;
DATA labels;
SET class1.smb(keep=PRODUCT_ID Year AON);
LABEL PRODUCT_ID="Line number";
Year="Year";
AON="Age on network";

RUN;

 

gives error :- ERROR: File CLASS1.SMB.DATA does not exist.

3 REPLIES 3
PGStats
Opal | Level 21

You have to say out=class1.smb in your proc import statement.

PG
Shmuel
Garnet | Level 18

When you write out=smb your output is work.smb, that is in work library.

To create the output in class1 library you should use @PGStats  answer:  out=class1.smb

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 750 views
  • 0 likes
  • 4 in conversation