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

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!

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
  • 1353 views
  • 0 likes
  • 3 in conversation