In this example, an arguments file, export_def_cal.arg (shown in export_def_cal.arg exportdefcal arguments file), is used to export, all the Rule-Based Calendars that contain the "RuleBased" string in their names. The exportdefcal command (shown in export command is used to export the Rule-Based Calendar definition, RuleBasedCal, from the emdevA Control-M/EM GUI server to the RuleBaseC.txt export file. This export file is then used with the defcal command to import RuleBasedCal to the emdevB Control-M/EM GUI server.
export_def_cal.arg exportdefcal arguments file
<TERMS>
<TERM>
<PARAM NAME="CALENDAR" OP="LIKE" VALUE="RuleBased*"/>
<PARAM NAME="TYPE" OP="LIKE" VALUE="Rule_Based"/>
</TERM>
</TERMS>
export command
emdef exportdefcal -u userA -p passA -s emdevA -arg \\netA\devpub\xargs\Arg\export_def_cal.arg -out \\netA\devpub\xargs\Arg\RuleBaseC.txt
The RuleBaseC.txt XML output file
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE DEFCAL SYSTEM "defcal.dtd">
<DEFCAL >
<RULE_BASED_CALENDAR
ACTIVE_FROM="20101024"
ACTIVE_TILL="20101021"
APR="0"
AUG="0"
DATACENTER="dcDist_700"
DAYS="1,2"
DAYS_AND_OR="OR"
DEC="0"
FEB="0"
JAN="0"
JUL="0"
JUN="0"
MAR="0"
MAXWAIT="00"
MAY="0"
NAME="RuleBasedCal"
NOV="1"
OCT="0"
SEP="0"
SHIFT="IGNOREJOB"
SHIFTNUM="+00"
WEEKDAYS="0"
/>
</DEFCAL>
import command
emdef defcal -u useB -p passB -s emdevB -src \\netA\devpub\xargs\Arg\RuleBaseC.txt /o
Parent Topic |