dataimport - Import non-Lawson XML data file
dataimport [-h|-da dataarea [--framework] filename|-u url [-t filetype]] [-halt|-nohalt] [-action classname
actionname [-action ...]] [-field classname|all fieldname value [-field...]] [-fieldmap sourceclass sourcefield targetclass targetfield][-isa]
[-rs] [-sf] [-ats size] | [-layout] [-metadata] classname [action] [-ignoreerrors
d | n]
dataimport imports non-Lawson data from an XML file into the Lawson database. You must create the XML import file conforming to the specifications outlined in the administration guide for your Landmark application prior to running this utility. During the import, you can specify actions to be performed on the data and field override values to be used.
Program Option | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-h
|
Display help for this utility. | ||||||||||||
-da
|
Required. Type the data area that the data will be imported to. |
||||||||||||
--framework
|
Load only framework classes for increased performance. Only valid if importing solely to framework business classes. | ||||||||||||
-f filename
|
Either Specify the full or relative path and file name for the file that contains data to be imported. You can specify more than one file name. Separate names with a comma. |
||||||||||||
-u url
|
Either Specify a URL pointing to the file that contains data to be imported. |
||||||||||||
-t filetype
|
The type of file, such as XML or CSV. Specify the file type,
to override the default specified in the |
||||||||||||
-halt|-nohalt
|
Optional. The default is
|
||||||||||||
-b businessClassName,...
|
If importing CSV files, specify the corresponding business class names. If multiple files, separate the business class names with commas to match. | ||||||||||||
-action classname actionname
|
Specify an action to be performed for a business class
(file) during the data import. If the Note:
Do not include Multiple How Actions Are Determined When
determining the action to apply to a business class, the
|
||||||||||||
-fieldmap sourceclass sourcefield
targetclass targetfield
|
Specify auto-sequenced field mappings for non-nested fields. You can specify more than one field mapping. | ||||||||||||
-isa
|
Ignore any actions specified in the import source. Overrides the default action hierarchy and forces any actions in the file to be ignored. |
||||||||||||
-field classname | all fieldname
value
|
Optional. Specify one or more field values to override when importing the data, based on fields for a business class, where fieldname is the field to override and value is the value to put in that field. If this parameter is used, it must contain either the keyword This parameter can be specified more than once, and the importer supports the ability to set field values in multiple ways. The most common is setting the value in-line as part of the record definition. The following hierarchy is used to process field value overrides:
|
||||||||||||
-rs
|
Report successful import records. This flag causes the importer to report successful imports in a text file, listing the business class name, the action used, and the key fields affected. The text file name is a randomly generated Java temporary file name. File location: %LAPRTDIR% |
||||||||||||
-sf
|
Report import failures. This flag causes
the importer to report failed import attempts in a text file. The
file contains the XML from the source file, and can be modified to
correct issues and resubmitted to the Note:
This flag forces the File location: %LAPRTDIR% |
||||||||||||
-ats size
|
Specify the approximate transaction size for data commits to the database. For performance reasons, the Type an approximate value, as the utility cannot commit data in the middle of a processing a nested set of data. |
||||||||||||
-layout filename
|
Returns a sample import file layout for a business class. | ||||||||||||
-metadata classname
|
Returns the sample import file layout metadata for a business class. | ||||||||||||
-ignoreerrors [d | n]
|
Ignore errors (d for duplicates, n for "not found" errors).
|