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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 8 replies
  • 50753 views
  • 6 likes
  • 4 in conversation