Help using Base SAS procedures

Proc Print

Reply
Learner
Posts: 1

Proc Print

I have a simple code such as below 

 


libname hwtest '/folders/myfolders/HPA477';

data h477;
set hwtest.whq_e;
run;
data h4772;
set hwtest.demo_e;
run;

proc sort data =h477;
by seqn;
run;
proc sort data=h4772;
by seqn;
run;

data merged;
merge h477 h4772;
by seqn;
run;

proc print data=merged;
run;


that is taking a very long time to run and I have to cancel each time. This is SAS University Edition .

Frequent Contributor
Posts: 108

Re: Proc Print

For Long dataset it is good not to print just see the dataset as dataset or Export the dataset and explore..
Super User
Posts: 17,874

Re: Proc Print

Which apart is taking a long time to run. Also, you don't need the first two steps - combine those into your proc sort to help speed things up:

proc sort data=hwtest.whq_e out=h477;
by seqn;
run;

And as @pearsoninst mentioned, remove the proc print.
Ask a Question
Discussion stats
  • 2 replies
  • 277 views
  • 1 like
  • 3 in conversation