; 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 File: 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.
- Output File: 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 simplying running the program to generate a report, you can select a none data source 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:
- 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 .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.
- 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.