generate Statement

Added: build 1

Purpose

Generates an input file according to the instructions contained within the specified input file section.

Applicability

The generate statement can be used within the RunCommands section.

Syntax

generate <inputFileSectionName>

Arguments

NameDescription

inputFileSectionName The name of the RawInputFile or RowFieldInputFile section that contains instructions on how to generate an input file to the component analysis.

Example

RunCommands
{
   generate inFile
   run "myCode xyz.in xyz.out"
   parse outFile
}
RowFieldInputFile inFile 
{ 
   templateFile: xyz.template 
   fileToGenerate: xyz.in 
 
   #          name    type    row  field 
   variable:  volume  double  1    2 
   variable:  length  double  1    3 
   variable:  height  double  2    3 
}
When a user executes the component, it first generates an input file named xyz.in based upon the instructions within the RowFieldInputFile section named inFile.

See also Analysis Server | FileWrapper | FileWrapper Statements