Unattended operation

The XML Autoload Utility can run unattended by setting options that are available from a configuration file and using command line flags. The configuration file can be built manually, or one can be generated from the parameters on the GUI. Instead of the report generated on the screen of the XML Autoload, all output is written to a file that you specify.

The default configuration file, PMAutoloadConfig.xml, is found in the same location as the XML Autoload Utility executable. It is supplied with all options empty. Parameters are specified in XML format. For example, if the XML input file is c:\xml\input.xml, the configuration file would contain:

<xmlsource>c:\xml\input.xml</xmlsource>

You can have as many configuration files as needed. A command line flag (-cf) specifies the configuration file to use. For example, you could have one configuration file that is "Validate Only", and another that actually updates the database.

All configuration files are validated by the DTD: XMLConfignn.dtd. This DTD is supplied in the same directory as the programs; typically this is:

IBM\WebSphere Transformation Extendern.n\tmgr_vn.n\pmgr

where n.n is the product version number.

You cannot create a configuration file without referencing this DTD.

When the program completes, the End Of Report message will contain:

Process Return Code: X

where x is 0 = OK, -1 = Error; no database changes made, 2 = Warnings issued.

This allows you to parse the output file to determine success or failure.

Warning: The XML Autoload may need a password to connect to your database, and also may need a Partner Manager user ID and password if those are in use. These passwords will be protected in the configuration file if you build the configuration file from the XML Autoload Utility. If you build the configuration file yourself, you will have to enter passwords in "clear text", which will be readable from anyone with access to your system. It is recommended you always start with a generated configuration file and do not attempt to modify the passwords manually.