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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 12677 views
  • 2 likes
  • 3 in conversation