Jun 1, 2016

How to run SAS code in unix


1. Create a file club1.sas with the below contents

options pagesize=60 linesize=80 pageno=1 nodate;
data club1;
infile datalines dlm=',';
input IdNumber Name $ Team $ StartWeight EndWeight;
datalines;
1023,David,red,189,165
1049,Amelia,yellow,145,124
1219,Alan,red,210,192
1246,Ravi,yellow,194,177
1078,Ashley,red,127,118
1221,Jim,yellow,220,.
;
proc print data=club1;
title 'Weight of Club Members';
run;



2. sas -dms club1.sas

3. It creates three files as below


4. club1.lst will have the below output










No comments:

Post a Comment