Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Loops-For/SAS/loops-for.sas
Normal file
21
Task/Loops-For/SAS/loops-for.sas
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
data _null_;
|
||||
length a $5;
|
||||
do n=1 to 5;
|
||||
a="*";
|
||||
do i=2 to n;
|
||||
a=trim(a) !! "*";
|
||||
end;
|
||||
put a;
|
||||
end;
|
||||
run;
|
||||
|
||||
/* Possible without the inner loop. Notice TRIM is replaced with STRIP,
|
||||
otherwise there is a blank space on the left */
|
||||
|
||||
data _null_;
|
||||
length a $5;
|
||||
do n=1 to 5;
|
||||
a=strip(a) !! "*";
|
||||
put a;
|
||||
end;
|
||||
run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue