How to save the values from the output on a format for other calculation? genr a series to save the output for other calculation

Add 10 data and calculating the absolute value of the the adding and roll forward 1 smpl and recalculating the 10 data

store using matrix? how to use the matrix for further calculation?