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

I have a very big workfile in the work folder. as files saved in work folder is temporary, is there any best and fastest method to save the work file to another folder for permanent storage.

(other than the following data step:

data output.permanet;

    set work.want;

run; )

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

You could use PROC COPY.

proc copy inlib=work outlib=output ;

  select want;

run;

This will copy WORK.WANT to OUTPUT.WANT.

View solution in original post

8 REPLIES 8
Ksharp
Super User

Usa another library to instead of WORK library.

libname x v9 'c:\temp\';
options user=x;
data class;
 set sashelp.class;
run;

Ksharp

mei
Calcite | Level 5 mei
Calcite | Level 5

this is the error log:

  libname output v9 'D:\MeiYee Folder\My Documents\PhD\Data Analysis\output';

NOTE: Libname OUTPUT refers to the same physical library as USER.

NOTE: Libref OUTPUT was successfully assigned as follows:

      Engine:        V9

      Physical Name: D:\MeiYee Folder\My Documents\PhD\Data Analysis\output

300  options user=output;

301  data want3;

302   set sashelp.want3;

ERROR: File SASHELP.WANT3.DATA does not exist.

303  run;

NOTE: The SAS System stopped processing this step because of errors.

WARNING: The data set OUTPUT.WANT3 may be incomplete.  When this step was stopped there were 0

         observations and 0 variables.

WARNING: Data set OUTPUT.WANT3 was not replaced because this step was stopped.

NOTE: DATA statement used (Total process time):

      real time           0.02 seconds

      cpu time            0.00 seconds

can you help?

manojinpec
Obsidian | Level 7

sashelp is automatic library which is assigned in sas session.you have to use your own library

Ksharp
Super User

As manojinpec said. SASHELP is a default library. You need define yourself library.

mei
Calcite | Level 5 mei
Calcite | Level 5

i open the work file and click save as 'new file name' in the new library name/directory...this also work right?

manojinpec
Obsidian | Level 7

Yes it would work.But if you want to do in programme you need to do as suggested.

mei
Calcite | Level 5 mei
Calcite | Level 5

thanks, will try this out definitely. mei

Tom
Super User Tom
Super User

You could use PROC COPY.

proc copy inlib=work outlib=output ;

  select want;

run;

This will copy WORK.WANT to OUTPUT.WANT.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 51917 views
  • 6 likes
  • 4 in conversation