Import PSS Retention Policies

You can import Atlas PSS retention policies into an Optim Directory to manage retention of archive files. They are used to control the automatic deletion of archive files, in the same way as retention policies created in Optim. Use the command-line interface to import PSS retention policies into an Optim Directory.

PSS retention policies are defined in PSS, and then exported to Optim in XML format. For each PSS retention policy you import, Optim automatically creates a retention policy. Each policy is uniquely identified by ROOT and VERSION elements. A sample of the export XML document is shown:
<?xml version="1.0" encoding="UTF-8"?
<p:schedules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";xsi:noNamespaceSchemaLocation="optim.xsd">
 <schedule>
  <rootId>0</rootId>
  <version>0</version>
  <scheduleId>0</scheduleId>
  <code>code</code>
  <title>title</title>
  <description>description</description>
  <orgUnit>
      <id>0</id>
      <title>title</title>
   </orgUnit>
  <createdOn>2001-12-31T12:00:00</createdOn>
  <modifiedOn>2001-12-31T12:00:00</modifiedOn>
  <disposition>
   <id>0</id>
   <retentionPolicy>retentionPolicy</retentionPolicy>
   <policyType>Event</policyType>
   <period>0</period>
   <units>Year(s)</units>
   <eventType>eventType</eventType>
  </disposition>
 </schedule>
</p:schedules>

For details on creating Storage Profiles, see Using the Storage Profile Definition editor.

Use the following syntax to import PSS policies:
PR0CMND /PSSIMPORT INPUT=filename
      [ DIRECTORY=optimdirectory ]
      [ OUTPUT=filename ]
PR0CMND
Type PR0CMND to initiate command-line processing. Note: the character that follows PR is the number 0 (zero).
/PSSIMPORT
Command to run the PSS Import process.
INPUT=
File name of the XML document that contains one or more PSS Retention Schedules.
DIRECTORY=
Name of the Optim Directory into which the PSS retention policies are imported. The default is the current Optim Directory.
OUTPUT=
Name of the XML response file generated by Optim. To save the file, provide a full directory path. If you provide the name of an existing file, the file is overwritten. If this parameter is omitted, no output is generated.
This step creates a temporary file that contains the statements from the PSS retention policies. In the next section, Create PSS Storage Profiles you use the temporary file to create new Storage Profiles.


Feedback