Help using Base SAS procedures

same code three programs

Reply
Contributor
Posts: 37

same code three programs

I have a section of code that is used in three different sas programs.
see sample code below. can I break this portion of code out of the programs and just call it when I need it??

data results;
set dailywf.LM_Master;

if x=1 then do;
If y ='2' THEN Category ='H';
else if b NE '3' OR b = '' then do;
if L in ('1','2','5','7')then do;
if L= '2' then Category = 'V';
if L IN ('1','5','7') THEN Category = 'F';
end;
ELSE Category = 'Other';
end;
end;
Valued Guide
Posts: 2,175

Re: same code three programs

check doc for
%include
Super Contributor
Posts: 394

Re: same code three programs

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