Download the PDF - Support

Transcript
Chapter 5: Stages Reference
default format that has been set in the type conversion options in Management Console, or it is the
dataflow's default format specified in the type conversion options in Enterprise Designer. The format
that is in effect is displayed. To use the default format, leave Default selected. To specify a different
format, choose Custom and follow these steps:
a) In the Locale field, select the country whose formatting convention you want to use. Your selection
will determine the default values in the Format field. For date data, your selection will also
determine the language used when a month is spelled out. For example, if you specify English
the first month of the year would be "January" but if you specify French it would be "Janvier."
b) In the Format field, select the format for the data. The format depends on the data type of the
field. A list of the most commonly used formats for the selected locale is provided.
An example of the selected format is displayed to the right of the Format field.
You can also specify your own date, time, and number formats if the ones available for selection
do not meet your needs. To specify your own date or time format, type the format into the field
using the notation described in Date and Time Patterns on page 26. To specify your own number
format, type the format into the file using the notation described in Number Patterns on page
28.
5. Click Add.
After defining the fields in your output file, you can edit its contents and layout.
Option Name
Description
Add
Adds a field to the output. You can append a field to the end of the
existing layout, or you can insert a field into an existing position and
Write to File will adjust the remaining fields accordingly.
Modify
Modifies the field's name and type.
Remove
Removes the selected field from the output.
Move Up/Move Down
Reorders the selected field.
Related Links
Write to File on page 166
Defining Fields In a Line Sequential or Fixed Width File
In the Write to File stage, the Fields tab defines the names, position, and, for some file types, lengths,
of the fields in the file. After you define an output file on the File Properties tab you can define the fields.
To define fields with default values for position, length, and data type, click Quick Add and select the
fields to add.
To add fields manually from a list of fields used in the dataflow, follow this procedure:
1. Click Add.
2. In the Name field, choose the field you want to add.
3. In the Type field, select the data type of the field coming from the dataflow.
Spectrum™ Technology Platform supports the following data types:
bigdecimal
A numeric data type that supports 38 decimal points of precision. Use this data type
for data that will be used in mathematical calculations requiring a high degree of
precision, especially those involving financial or geospatial data. The bigdecimal
data type supports more precise calculations than the double data type.
boolean
A logical type with two values: true and false.
date
A data type that contains a month, day, and year. For example, 2012-01-30 or
January 30, 2012. You can specify a default date format in Management Console.
Dataflow Designer's Guide
171