You can map a string variable that contains the flat file
data to the input parameter of the Read Flat File activity
called Data.
Data is an input parameter of type string
or base64Binary. During run time the string variable must contain
flat file data before the
Read Flat File activity
is run. For more information see the following Runtime Example.
The Encoding
input parameter is optional. You are not required
to map this input parameter. If the Encoding input
parameter is not listed in the To Activity pane
of the Map Inputs pane, select from the toolbar menu or right-click the To
Activity pane and select the Show Optional
Parameters option. If the option
is not selectable in the toolbar menu, click a node in the Map
Inputs pane to make this option active.
The Encoding
input parameter specifies how the incoming data is decoded
when read:
Procedure
- If no decoding is required, specify the string: text.
- If decoding is required, specify the encoding type that
should be used to decode the incoming data. For example: UTF-8,
US-ASCII, ISO-8859-1, EBCDIC-XML-US, or SHIFT_JIS.
Example
Optionally, you can override the
Encoding setting
you specified in the
Configure task of the
Checklist dynamically
during run time, using the
Encoding input parameter.
For example, if you set the
Encoding to
UTF-8 in
the
Configure task but during run time you
passed in the
Encoding setting of
Shift_JIS.
The
Encoding setting specified dynamically during
run time overrides the original setting specified in the Configure
pane. In this example, the
Encoding would be
set to
Shift_JIS. There is one exception to
the dynamic overriding behavior if the
Data is
text-Needs
no decoding or encoding option is selected in the
Configure task,
the
Encoding dynamically set during run time
is ignored and no decoding occurs.
See Creating a map for general instructions on
mapping.