You can do this or any test output by redirecting it to a file using > command.
Example in Your case
#iostat 900 > /tmp/iostat.opuput &
#sar -d 900 100 > /tmp/sar.output
These are the text files in which your respective Outputs are stored for you further references.
Additional Info:
Now To Automate this Process create a script:
# cd /tmp
#vi script
while true
do
iostat > /tmp/iostat.output
sleep 900
iostat >> /tmp/iostat.output
sleep 900
done
#chmod 777 scr
#./scr ( This will execute the script )
Do the same for sar o/p.
I'll sleep when i am dead.