BookmarkSubscribeRSS Feed
Julie
Calcite | Level 5

I am trying to create a permanent data set from another dataset and coding that was created.  this is my code but it is not working.  Each time I still have to run the previous codes to be able to run my own codes.  I am not sure what I am doing wrong.

Libname tume "c/documents and settings/filename";

options fmtsearch=(tume);

data rel_analysis_bin;

set  rel_analysis; run;

data tume.rel_analysis_bin;

set rel_analysis_bin;run;

Not sure what I am doing incorrect

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

rel_analysis in the first SET statment is a temporary dataset.  To avoid running the previous code each time, you need to save the output to a permanent dataset.

art297
Opal | Level 21

In addition to Doc's comments:

(1) is there a directory, under your c/documents and settings/ named filename?  In the libname statement you must be pointing to an existing directory.

(2) In the rollowing datastep, did the temporary file rel_analysis already exist before you ran the code?  Regardless, I don't see the point of this datastep.

data rel_analysis_bin;

set  rel_analysis; run;

(3) If the temporary file rel_analysis exists, your last datastep only needs to be:

data tume.rel_analysis_bin;

  set rel_analysis

;run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1371 views
  • 0 likes
  • 3 in conversation