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 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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