Adding distributions
When you create an ODF distribution, the values that you specify for the distribution fields can be inherited by the report bundle that is associated with the distribution. To make the report bundle inherit values from the distribution, when you create the report bundle, leave those fields blank. For example, if you want the report bundle to inherit the Destination value from the distribution, when you create the report bundle, leave the Destination field blank. If you do not want the report bundle to inherit values from the distribution, then specify values for the report bundle fields when you create the report bundle. The values that you enter in the report bundle fields override the values from the distribution.
A Content Manager OnDemand administrator wants to create a new ODF distribution. The administrator created the distribAdd.xml file that contains the distribution information.
To complete this task, run this command:
arsxml add -h myod -u myoduser -p myodpwd -v -i /usr/lpp/ars/V10R5M0/bin/xml/samples/distribAdd.xml
The distribAdd.xml file might look like this:
<?xml version="1.0" encoding="UTF-8" ?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<odfDistribution name="Daily sales invoices"
recipient="SALES-San Francisco"
status="Active"
job="MSALES"
location="E-mail"
transform="None"
account="ACCT. 0013"
cwIndicator="Wait"
reportBreak="Yes"
distMethod="Loaded"
destination="PRINTER3"
writer="WRITER3"
forms="FORM3"
formDef="FORMDEF3"
pageDef="PAGEDEF3"
class="A"
FCB="FCB3"
UCS="UCS3"
outputLimit="100" >
<odfReportBundle task="add"
sequence="10"
reportId="DAILY SALES INVOICES"
reportBuild="Query"
status="Active"
waitIndicator="Wait"
location="E-mail"
transform="None"
destination="PRINTER6"
writer="WRITER6"
forms="FORM6"
formDef="FORMDEF6"
pageDef="PAGEDEF6"
job="XMLF0013"
class="A"
FCB="FCB6"
UCS="UCS6"
burst="Yes"
flash="FLASH6"
copies="1"
COPYM="COPYM6"
outputLimit="Unlimited" >
<sql>1;REPORT_NUMBER;'YE1234';Where REPORT_NUMBER = ?</sql>
</odfReportBundle>
</odfDistribution>
</onDemand>