Hello,
I wrote a do-file that needs to be applied to many different data-sets with the risk that some things are not done properly for some data-sets. To make sure that things do run properly I had an idea of displaying a set of information created by the do-file and pausing the run until someone reads that information and hits "Y", or "N" key to continue or stop the run. More precisely (this is a simplified example), I need to make sure that two variables, say a1 and a2 sum to 1, and my do-file displays whether or not this holds for every observation. In some data-sets, these variables are named differently. My do-file reads from an excel file to know which two variables need to sum to 1. However, I need to be sure that the appropriate excel files are read, and that the excel files are appropriately formatted etc. So, I came up with a solution that I would display the list of the two variables that are supposed to add to 1 in that particular data-set. At this point, I would like my do-file to wait for confirmation or rejection. If the list of the two variables is indeed correct, I would hit "Y" upon reading that display, at which point the do-file would continue its run.
Is this possible? If so, how?
Please let me know if the above does not make sense.
Thank you!
Best wishes,
Nona
I wrote a do-file that needs to be applied to many different data-sets with the risk that some things are not done properly for some data-sets. To make sure that things do run properly I had an idea of displaying a set of information created by the do-file and pausing the run until someone reads that information and hits "Y", or "N" key to continue or stop the run. More precisely (this is a simplified example), I need to make sure that two variables, say a1 and a2 sum to 1, and my do-file displays whether or not this holds for every observation. In some data-sets, these variables are named differently. My do-file reads from an excel file to know which two variables need to sum to 1. However, I need to be sure that the appropriate excel files are read, and that the excel files are appropriately formatted etc. So, I came up with a solution that I would display the list of the two variables that are supposed to add to 1 in that particular data-set. At this point, I would like my do-file to wait for confirmation or rejection. If the list of the two variables is indeed correct, I would hit "Y" upon reading that display, at which point the do-file would continue its run.
Is this possible? If so, how?
Please let me know if the above does not make sense.
Thank you!
Best wishes,
Nona
Comment