Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/CSV-data-manipulation/SAS/csv-data-manipulation.sas
Normal file
15
Task/CSV-data-manipulation/SAS/csv-data-manipulation.sas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
data _null_;
|
||||
infile datalines dlm="," firstobs=2;
|
||||
file "output.csv" dlm=",";
|
||||
input c1-c5;
|
||||
if _n_=1 then put "C1,C2,C3,C4,C5,Sum";
|
||||
s=sum(of c1-c5);
|
||||
put c1-c5 s;
|
||||
datalines;
|
||||
C1,C2,C3,C4,C5
|
||||
1,5,9,13,17
|
||||
2,6,10,14,18
|
||||
3,7,11,15,19
|
||||
4,8,12,16,20
|
||||
;
|
||||
run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue