As series of REPM server commands can be transferred to the
Replication Manager CLI (REPMCLI) (Replication Manager: SAP DB ®An individual Replication Manager command consists of one or more keywords, and arguments and options.
Die command file
DATALOAD TABLE cust
cno 01-04
lastname 06-12
zip 14-18
place 20-31
INFILE 'cust.data' FORMATTED
/
DATALOAD TABLE item
ino 01-08
descr 09-39 NULL IF POS 09-11 = ' '
stock 40-43 INTEGER NULL IF POS 40-43 INTEGER < '0'
min_ord 44-45 INTEGER
price 46-53 DECIMAL (2) NULL IF POS 1 <> 'X'
OR POS 46-53 DECIMAL < '0'
weight 54-57 REAL
INFILE 'item.data' FORMATTED
/
USE USER sampleuser,secret serverdb MK2 on server2
/
SET TIMESTAMP ISO
/
SET MAXERRORCOUNT 100
/
FASTLOAD TABLE posting IF POS 4 >= '11.08.1999'
uno 1
cno 2
hno 3
from_dat 4
to_dat 5
price 6
INFILE 'master.data' DATE 'dd.mm.yyyy'
repmcli -u samplename,secret -d MK1 -b command.dat
The Replication Manager is called and a database session is created for the user
samplename, password secret, with the database instance MK1. The REPM Server commands in the file command.dat are processed:DATALOAD command: The tables
cust and item are loaded.See also: