BookmarkSubscribeRSS Feed
melaleuca
Calcite | Level 5

Hello

I am to new to SAS ,I was trying to create a listing report , using this code below:

proc print data=sasintro.pilotdata;

run;

Then I got this error message in log :ERROR: Libname SASINTRO is not assigned.

How can I slove this problem please ?

Thank you so much

5 REPLIES 5
Patrick
Opal | Level 21

Which client are you using (SAS Enterprise Guide)?

If it is SAS Enterprise Guide: Do you see the library anywhere (eg. under "Server) or do you just run some sample code assuming that the library has been assingned already?

melaleuca
Calcite | Level 5

Hello Patrick

Thank you for your response.

I was practicing how to create a listing report using SAS 9.3

then I was trying to add code to create this listing report of the SAS data set named pilotdata, I used the PROC PRINT step to do so. This is the actual code I wrote in Editor window:

proc print data=sasintro.pilotdata;

run;

After I submited the code I got this ERROR in log : ERROR: Libname SASINTRO is not assigned

How can I assign the Libname SASINTRO ? If I slove this error, will I be able to creat a listing report?

Thank you so much

shivas
Pyrite | Level 9

Hi,

You can assign you libname to SASINTRO like

Libname SASINTRO 'F:\test';

proc print data=sasintro.pilotdata;

run;

Thanks,

Shiva

Howles
Quartz | Level 8

Are you following the lessons at http://wenku.baidu.com/view/08e86d15f18583d0496459e6.html?

SASINTRO is not something built in to SAS. It is a user-provided name.  If you reference it without having defined it you will definitely get errors.

So be sure to follow the instructions in Lesson 4 about the LIBNAME statement.

melaleuca
Calcite | Level 5

Hi Howles

Thank you for your reply, I went back to Lesson 4 and solved this problem.

Thank you 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 5 replies
  • 1704 views
  • 0 likes
  • 4 in conversation