BookmarkSubscribeRSS Feed
bbreuer
Fluorite | Level 6

Thanks to Reeza's motivating me, I succeeded in importing an Excel dataset, and converting it into a work dataset. How do I now convert the work dataset into a permanent dataset within a dubdirectory of myfolders? Also, please let me know exactly how I can find your response in this community blog center, so that I can comment on it? I was not able to find your response to my prior question. I just had the response in theemail you sent me.

 

To create the work dataset I followed the following directions:

  1. Click Server Files and Folders in the navigation pane and browse to find the file that you want to import.
  2. Right-click the file that you want to import and select Import Data. The top of the Import Data tab shows the name and location of this Excel file. It also shows several options that you can customize.
    3. To specify the location to save the output data set, click Change( iI WAS UNSUCCESSFUL IN DOING THIS. I WANTED TO SAVE THE DATASET IN 
    myfolders\hss)
    By default, the output data set is saved to the Work library, which is a temporary location. The contents in this library are deleted when you exit SAS Studio
    1. To generate SAS variable names from the data values in the first row of the worksheet, select Generate SAS variable names. If a data value in the first row in the input file is read and it contains special characters that are not valid in a SAS name, such as a blank, then SAS converts the character to an underscore.
    2. To import the Excel worksheet, click Submit SAS Code.
    .
4 REPLIES 4
Reeza
Super User

Your original post is here. You can get to it by clicking your name icon and it will take you to your profile page. 

https://communities.sas.com/t5/SAS-Analytics-U/New-University-Edition-user-stuck-on-Proc-Import/m-p/...

 

To create a 'permanent' library set up a library in SAS and then assign the data to the new library.

 

libname myWork '/folders/myfolders/myWork/';

data myWork.myDataset;
set  myDataset;
run;
Ron_MacroMaven
Lapis Lazuli | Level 10

I see someone has provided code to read and copy the work.data_set

 

no need to read it, just

 

proc copy in   = work
          out  = my_lib;
          select my_data;

Ron Fehd  CPU seconds counter

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 13464 views
  • 2 likes
  • 3 in conversation