Press
; or press
Ctrl+R; or select
Run from the
File menu to run a batch application. If you've made changes since you last compiled, CSPro will first
compile your application. If your program compiles successfully, you will see a screen that looks similar to this:
The following rows are required:
- Input Data: This asks for the name of the data file against which you wish to run your batch application. This data file will not be modified in any way; it will only be opened, read, and closed. You can also select None as your input data file; useful, for example, when writing menu applications that do not require an input data file.
- Output Data: The output file is where the results of correcting your data will be written. If you are not making any corrections in your program, then the generated file will be an exact copy of the original data file. If you are making corrections to your data file, then this will be the corrected data file. If you do not need a corrected data file, and are simply running the program to generate a report, you can select None as the output.
- <Listing File>: This asks for the name of the file to which you want to write the results of the run. Results from errmsg functions will be written here. This file will always be generated, regardless of whether or not your program includes errmsg commands. Listing files generally have the extension .lst.
The following rows are optional, based on the logic in your application:
- <Freq File>: If your program contains any Freq statements, the tabulated frequencies will be written to this file. If you do not specify a frequency file, the frequencies will be written to the listing file (if possible).
- <Impute Freq File>: If your program contains any impute statements, the results of this command will be written to this file. The default file extension is .impute_freq.lst, but you can use whatever you'd like. This field is optional; therefore, if your program contains impute commands, but you forget to specify a frequency file, no file will be generated. Similarly, if you indicate a frequency file but your program does not contain any impute commands, no file will be generated.
- <Impute Stat Data>: If your program includes one or more impute statements that use the stat command, the imputation statistics will be saved to the data file specified.
- <Write File>: If you have any write function calls in your program, the results will be saved to this file. This field is optional. If no write file is specified, the write function's output is saved to the listing file.