gendbload - Load Database from Flat File

gendbload [-anr7] dataarea|dataID filename flatfilename overridedataarea/dataID

Load a flat file into a database file, overriding the data area/data ID, and loading it into a data area/data ID with a different name.

Note: If the data area or data ID you dumped from is the same as the data area or data ID you are loading to, do not use gendbload; use dbload instead.
Program Option Description
a Overwrite all duplicate records. Replaces existing database records with duplicate records in the flat file. If the flat file has multiple occurrences of a record, the last occurrence is stored in the database.
n Do not overwrite all duplicate records. Does not replace existing database records with duplicate records from the flat file. It ignores the duplicate records in the flat file.
r Report on duplicate records. Prints duplicate records between the flat file and the database. It does not replace the existing database records.
7 Flat file is from a Lawson 7.x product line on IBM i.
dataarea|dataID Data area or data ID dictionary you are loading the flat file to.
filename File you want to load.
flatfilename Flat file to load database files from.
overrideproductline Product line you want to load to.
Note: Date, time, username, type, utility name and key field activities of this utility are logged in the $LAWDIR/system/secadmin.log file.

For more information about transferring or copying, see Lawson Administration: Server Setup and Maintenance.