Read Variable-Length File
Operation name
Read Variable-Length File
Function overview
Reads a variable-length file.
Data model
The data model of this component is table model type.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
File |
Required |
Available |
Enter the file path of a variable-length file to read. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Delimiter mode |
Required |
Not available |
Select a method to specify delimiter.
|
|
Delimiter list |
Optional |
Not available |
Select a delimiter character.
|
|
Delimiter |
Optional |
Available |
Enter a delimiter character.
|
|
Double quote escape |
Required |
Not available |
Select whether to escape double quotes.
|
|
Format |
Required |
Not available |
Select a format definition for variable-length files registered in data format resources. = Remarks =
For how to configure settings, refer to Variable-Length Wizard.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Preview |
The previewer is started, and the contents of the file specified in File is displayed. |
|
Variable-Length Wizard |
The Variable-Length Wizard is launched. For details, refer to Variable-Length Wizard. |
|
Read settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Encoding |
Required |
Available |
Select or enter an encoding for the file to read. When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8. = Remarks =
For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html). |
|
New line code |
Required |
Not available |
Select a newline code.
|
|
Retrieve empty fields as empty string |
Optional |
Not available |
If the value of the field is an empty string, select whether to retrieve it as an empty string or as null.
|
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Schemas
Input schema
None.
Output schema
The number of columns varies depending on the Format settings.
For schema structure, refer to Table model type .
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Parallel Stream Processing
PSP is supported.
For details on PSP, refer to Parallel Stream Processing.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of read data records is stored. |
Note
Value isn't stored when using PSP. |
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Null and empty strings
-
If the data of the field is an empty string, it's retrieved either as null or an empty string.
Whether it's retrieved as null or an empty string depends on the selection for Retrieve empty fields as empty string.
-
If the record defined in the input data structure doesn't exist, the data of the fields in that record becomes null.
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|