BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
xliu1
Quartz | Level 8

I created a sas dataset which has 9347777 rows and 37 columns and want to save it in a permanent library on my organization's network drive so that I can use it later in other programs. Here is the sas code. Looks like it takes forever to run. Is there a more efficient way to do this? 

data dl.course_enrl_detail;
set course_enrl_detail;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@xliu1 wrote:

I created a sas dataset which has 9347777 rows and 37 columns and want to save it in a permanent library on my organization's network drive so that I can use it later in other programs. Here is the sas code. Looks like it takes forever to run. Is there a more efficient way to do this? 

data dl.course_enrl_detail;
set course_enrl_detail;
run;

The data step also processes each record as if you are going to do some data manipulation.

If the idea is just to copy the data you might try either Proc Copy or Proc Datasets with the Copy option.

View solution in original post

3 REPLIES 3
SASKiwi
Opal | Level 21

If you are writing this from your PC to a network drive then you will be limited by the network connection speed.

Compressing the dataset so it takes up less space may help:

 

data dl.course_enrl_detail (compress = yes);
set course_enrl_detail;
run;
ballardw
Super User

@xliu1 wrote:

I created a sas dataset which has 9347777 rows and 37 columns and want to save it in a permanent library on my organization's network drive so that I can use it later in other programs. Here is the sas code. Looks like it takes forever to run. Is there a more efficient way to do this? 

data dl.course_enrl_detail;
set course_enrl_detail;
run;

The data step also processes each record as if you are going to do some data manipulation.

If the idea is just to copy the data you might try either Proc Copy or Proc Datasets with the Copy option.

xliu1
Quartz | Level 8

Thanks for suggestion! I tried proc copy with compress=yes statement and save the data on my desktop, it take 27 seconds.

libname DL1 'C:\DISTANCE LEARNING DASHBOARD';
OPTIONS COMPRESS=YES;
PROC COPY IN=WORK OUT=DL1 NOCLONE;
SELECT COURSE_ENRL_DETAIL;
RUN; 

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