Programming the statistical procedures from SAS

I need help with coding

Reply
New Contributor
Posts: 2

I need help with coding

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

Valued Guide
Posts: 2,108

I need help with coding

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.

Esteemed Advisor
Posts: 7,074

I need help with coding

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;

Ask a Question
Discussion stats
  • 2 replies
  • 73 views
  • 0 likes
  • 3 in conversation