<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE sddlschema SYSTEM "sddlschema.xsd">-->

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    DADS_ARCHIVE.SDDL        -->
<!-- -->
<!--  Purpose:      This SDDL file defines relation DADS_ARCHIVE        -->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                    Reason-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!--  19-JAN-96             PHyde          Original Implementaton-->
<!--  22-JAN-96             Ken Steuerman  Add descriptions-->
<!--  31-JUL-96    31905    MARose         Fix syntax so SDDLCOMP will work-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!--  18-FEB-10    64085    MSwam          add index on reqdate,disk_date -->
<!--  15-JUL-10    65295    Sherbert       add a date field for catalog finish -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="DADARC_TYPE">

           <description>Tracks responses made by the on-line
                               archive system.  Entries are retained
                               in this table when processing is
                               completed.</description>


           <field name="dataset_name">
                   <type>C*23</type>
                   <description>The name given to describe a group of files.</description>
           </field>

           <field name="archclass">
                   <type>C*3</type>
                   <description>The classification used to archive the data.</description>
           </field>

           <field name="archdate">
                   <type>C*20</type>
                   <description>The latest file date associated with the
                               dataset.</description>
           </field>

           <field name="reqdate">
                   <type>C*23</type>
                   <description>The date when the archive insertion request
                               was generation</description>
           </field>

           <field name="reqtype">
                   <type>C*4</type>
                   <description>OPUS generates either TAPE or DISK archive
                               insertion requests.</description>
           </field>

           <field name="response">
                   <type>C*10</type>
                   <description>Response status returned by DADS.</description>
           </field>

           <field name="disk_date">
                   <type>C*23</type>
                   <description>The optical disk date assigned by DADS.</description>
           </field>

           <field name="file_cnt">
                   <type>I*2</type>
                   <description>The file count as determined by DADS</description>
           </field>


           <field name="path">
                   <type>C*10</type>
                   <description>The path from which the request is made</description>
           </field>

           <field name="tape_date">
                   <type>C*20</type>
                   <description>The date when a tape is made</description>
           </field>

           <field name="saveset">
                   <type>C*17</type>
                   <description>The saveset name</description>
           </field>

           <field name="archv_tape">
                   <type>C*6</type>
                   <description>Tape label</description>
           </field>

           <field name="catalog_date">
                   <type>datetime</type>
                   <description>The date when catalog completes successfully, 
                                filled by the housekeeping task.
                   </description>
           </field>

    </record>


    <relation name="dads_archive">

        <type>DADARC_TYPE</type>
        <description></description>
        <subsystem_using>OPUS</subsystem_using>

        <index name="dads_archive_1">
            <type>clustered</type>
            <field name="dataset_name"/>
            <field name="archclass"/>
            <field name="archdate"/>
            <attr>ignore_dup_row</attr>
        </index>

        <index name="dads_archive_2">
            <type>nonclustered</type>
            <field name="archclass"/>
        </index>

        <index name="dads_archive_3">
            <type>nonclustered</type>
            <field name="reqdate"/>
            <field name="disk_date"/>
        </index>

    </relation>


    <instance  name="dads_archive" scope="global" type="DADARC_TYPE" />

</sddl>
