BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi Folks,


I am brand spanking new to this SAS thing and I need some help. I have a lot of experience with SPSS (I can hear the booing and hissing now) and with PC's in general - but cannot figure this out. I am not sure if I am even posting to the right group (so please bear with me if I am not).

I just started in a new job where SAS is used, apparently quite few sas macros are in place here and I need to do the following:

Import a bunch of csv's into SAS (not necessarily programatically), when I import them via the File import menu option, I am prompted for a library and I specify a library that I created called 'work'. The file imports to that location and the data looks right (record count, fields, etc), but how can I take that file that now it exists in this 'library' and put it in a location on my network? Drag and drop doesn't work, Is there a way that I can specify where a library stores it's folders. I thought that 'shortcuts' might be the right way to go but I think that refers to keyboard shortcuts.


Thanks in advance,

Serge da newbi
1 REPLY 1
deleted_user
Not applicable
Hi,
all the same like in SAS-L: a SAS library is a subdirectory in windows. All SAS objects in that directory will be shown in the appropriate windows (e.g. the LIBNAME-window) in the SAS environment, others, e.g. texts (.txt), DB's (.mdb), SAS - sources (.sas) will be not.
You did NOT create the WORK library. It is created automaticly at SAS start like it is designed in your config file. What you DID create, is a SAS dataset, but attention: it will be deleted at end of your SAS session.
Use

libname xy "c:\path_to_your_data\";

to assign a permanent library (remember: it is a simple subdir). That library u use with a two-level name, like:

xy.dataset_name

Another SAS object which can reside in a library is a SAS catalog. If you type in the command line of the SAS editor:

save xy.my_progs.test.source

you create the catalog my_progs in xy, if it did not exist and store a text in the catalog member test of type source.

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
  • 1 reply
  • 642 views
  • 0 likes
  • 1 in conversation