Creating cBases with Spectre Build Scripts

The Spectre Build script prepares your data for conversion to a cBase. The Spectre Build editor allows you to inspect your input data and make adjustments to the script to ensure that it produces the most useful cBase file for your needs. The script is a text file with a build file extension that opens by default in the GUI Spectre Build editor. If you prefer, you can open the build script in a text editor tab by right-clicking the file and choosing Open with > Text Editor.

There are two methods to generate a Spectre Build script from a text data file:

  • Right-click the data file and click Generate Spectre Build Script—This method automates the required input and output elements based on the data file name, and Spectre makes "best guesses" for the column type.
  • Click File > NewSpectre Build File—This method requires that you provide the input and output elements. You also need to manually define the type field for each column.

NOTE:

  • Calculated columns use the same expression syntax as calcs in a cPlan. See About Spectre Expressions and Alphabetized Functions for Spectre.
  • There are additional attributes you can only apply when editing the script in a text editor tab. See Additional Build Script Column Attributes.
  • You can set a Workbench preference so that ProDiver opens any cBase that is successfully created with a Spectre Build script. See Setting Workbench Preferences.
  • A new build script also has ODBC as an option for the input type. When using a database table, Spectre uses the database metadata to help set data types. For Closedexample:

    Sample ODBC Input for Spectre Build

  • When a Spectre build requires either a cBase input or multiple types of input, you must use the Text Editor to create the script.

See also: