Alternately to proc append, there is proc sql insert method or the tried and true data step set. If its a large dataset append and insert have some advantages not having to rewrite the old data to the dataset,. Append has simplier syntax especially for very wide datasets. Either way you need a separate dataset with the additions. Below I use Append to add to the original dataset and a data step to show an example of creating a new dataset with all the observations. ----------------------------- data have; format id $3. Flag $1. time timeampm8.; infile cards dsd ; input id flag $ time : time8.; cards; 103,N,12:15 AM 105,Y,1:35 PM ; run; data Add; format id $3. Flag $1. time timeampm8.; infile cards dsd ; input id flag $ time : time8.; cards; 103,Y,2:15 PM 105,N,1:45 AM ; run; data want; set have add; run; proc append base=have data=add force; run; --------------------------
... View more