Program Data Tracking and Storage

I would like to know if I can collect information during a program run and store that information in an installation variable that i can review later. I am intersted to see, what serial #s ran on the machine, and if we torqued all the screws for any specific serial number. In my programs I have the ability to collect serial numbers:(alpha numberic) and torque pass or fail data where a UR CAP is sending data back in and assinging that data to variable.