Generating Model Outputs
Overview
When the model is executed, a set of Excel-format and Access-format output .dta files are generated automatically for each scenario. These output .dta files are created by Julia script files stored and categorized under the \Output folder.
Storage Location for Output Script Files
The output script files that are executed during model runs are stored in either \Output\ExcelOutput or in a \Output\AccessOutput\Subfolder. A third storage location is used for storing output script files to be executed without running the model: \Output\TestOutput.
|
Output Script File Location |
Description |
|
\Output\ExcelOutput |
Controls list of Excel-format output files that will be generated, when passing an "ExcelDTAs" or "All" argument. |
|
\Output\AccessOutput\Subfolder |
Controls list of Access-format output files that will be generated, given an "AccessDTAs" or "All" argument. |
|
\Output\TestOutput |
Controls list of "Test" output files that will be generated, given an "Test" argument. |
|
|
🛈 |
Subfolders under \Output\AccessOutput\ are used during post-processing to optionally create a set of Access databases named based on the subfolder names. |
Control File for Generating Outputs
Two text files in the \Output folder control which of the output script files get executed during model execution: \Output\ExcelOutput.txt and \Output\AccessOutput.txt.
|
Output Control File |
Description |
|
\Output\ExcelOutput.txt |
Controls list of Excel-format output files that will be generated, when passing an "ExcelDTAs" or "All" argument. |
|
\Output\AccessOutput.txt |
Controls list of Access-format output files that will be generated, given an "AccessDTAs" or "All" argument. |
|
\Output\TestOutput.txt |
Controls list of "Test" output files that will be generated, given an "Test" argument. |
Generating Outputs without Running the Model
The batch file, \2020Model\CreateAllOutputFiles.bat can be used to generate output files for a user-specified scenario without running the model. This batch file consists of a call to another batch file, CreateOutputFiles.bat, which accepts user-specified argments as shown below:
CreateAllOutputFiles.bat
Call CreateOutputFiles ScenarioName BaseCaseName zInitialScenario TypeOfOutputFiles
where:
- ScenarioName = name of scenario to generate outputs;
- BaseCaseName = name of scenario used to calculate differences in some of the output files;
- zInitialScenario = name of scenario used for the zInitial column in the Access outputs. This scenario is often the same as the BaseCaseName;
- TypeOfOutputFiles = indicates which type of output files to create (ExcelDTAs, AccessDTAs, All, or Test).
|
|
🕮 |
Example To generate All output dta files for a Ref25 scenario:
To generate output dta files for a Ref25 scenario from script files stored in \Output\TestOutput and listed in \Output\TestOutput.txt:
|
Outputs created using this batch file will be zipped and stored in the \2020Model\ScenarioName folder as well as saved to the \2020Model\out folder.