REPM Server Commands 

As series of REPM server commands can be transferred to the Replication Manager CLI (REPMCLI) (Replication Manager: SAP DB ® REPM Server Commands) in a command file <command_file> (specification of option -b <command_file>).

An individual Replication Manager command consists of one or more keywords, and arguments and options.

Die command file command.dat has the following contents:

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.
USE USER command: A session is created for user
sampleuser, password secret, with the database instance MK2 on the server server2.
SET TIMESTAMP command: The format of the plain text values, in which TIMESTAMP columns are input and output is defined as ISO.
SET MAXERRORCOUNT command: The specified number of errors is ignored without terminating processing of the commands.
FASTLOAD command: The table
posting is loaded.

See also: