BookmarkSubscribeRSS Feed
rahm22
Calcite | Level 5

Hi, I am using SAS University Edition for my grad school project and I am new to it. I have created a new library in it and now I want to add a file into it but I am not able to find any information regarding that Can anyone help me with this ?

2 REPLIES 2
ballardw
Super User

Several options: data step program, direct procedure output or copy from existing.

a trivial example of a datastep program to create a dataset named Newdata in a library named Mylib.

data mylib.newdata;

     x=5;

run;

Create output of summary values of height and weight by sex from the SAS supplied data set Class in the Library Sashelp using output to send to library Mylib and dataset Sumdata.

Proc summary data=sashelp.class;

class sex;

var height weight;

output out=mylib.sumdata sum=;

run;

rahm22
Calcite | Level 5

Thanks for the answer but I am still not clear. The requirement for me is that I have a file in my shared drive for example /folders/myfolders/test.csv. And I need to add data from this file into my library mydata. How can I do this ?

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
  • 2 replies
  • 347 views
  • 0 likes
  • 2 in conversation