There are many ways to do the job. It depends your real situation to evaluate which one is better.
Proc append only appends one data set every time. If you really want to use it, you'd better to use SAS macros to repeat your sas codes. This is a case when you do some simulation jobs, etc.. Here is an example,
option mprint will print all generated SAS code in logs.