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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    PODNAMES_OLD_IPPPSSOOT.SDDL     -->
<!-- -->
<!--  Purpose:      This SDDL file defines relation PODNAMES_OLD_IPPPSSOOT-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who              Reason -->
<!-- - - - - - -   - - -   - - - -   - - - - - - - - - - - - - - - - - - - -->
<lm>  03/08/07     57586    Gardner        First version </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <record name="PODNAM_TYPE">
           <description>This SDDL file defines relation PODNAMES_OLD_IPPPSSOOT.
                  PODNAMES_OLD_IPPPSSOOT is used to document the original
                  PODNAMES table entry, which needed a change to allow OTFR 
                  processing of reprocessed data (in which the 9th character
                  changed).  To avoid losing the original exposure name and
                  9th character, an entry is made into this table.
                  </description>
  

           <field name="ipppssoot">
                   <type>C*9</type>
                   <description>The original name of the science observation</description>
           </field>

           <field name="podname">
                   <type>C*23</type>
                   <description>The name of the POD file (byte-swapped after receipt
                        from DDF) used as input to data partitioning.  The 
                        format of this field is

                        cc_aabb_yyyymmddhhmmss

                        where  cc = data product type (LZ=production, 
                                                       QL=quick-look, 
                                                       RT=real-time)
                               aa = srcid
                               bb = obsid
                               yyyy = year
                               mm = month (first mm)
                               hh = hour
                               mm = minutes (second mm)
                               ss = seconds

                        Example:  LZ_EB0C_19960805180300</description>
           </field>

           <field name="orphan_name">
                   <type>C*9</type>
                   <description>The name of a temporary science data file created 
                        by data partitioning.  If the pipeline cannot 
                        complete data partitioning processing, the orphan
                        file will contain the 'bad' packets which could not
                        be partitioned.  Sometimes orphan files are archived
                        to the PRB class for POD files that cannot be 
                        processed.</description>
           </field>

           <field name="ipppssoot_new">
                   <type>C*9</type>
                   <description>The NEW name of the science observation. </description>
           </field>

           <field name="insert_date">
                   <type>DATETIME</type>
                   <description>The date this row was inserted. </description>
           </field>

           <field name="insert_comment">
                   <type>C*255</type>
                   <description>Description of the rationale for the update. </description>
           </field>



    </record>


    <relation name="podnames_old_ipppssoot">

        <type>PODNAM_TYPE</type>

        <description>History of POD file processing in the OPUS pipeline</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="podnames_old_ipppssoot_1">
            <type>unique nonclustered</type>
            <field name="ipppssoot"/>
            <field name="podname"/>
            <field name="orphan_name"/>
            <attr>ignore_dup_key</attr>
        </index>

    </relation>


    <instance  name="PODNAMES_OLD_IPPPSSOOT" scope="global" type="PODNAM_TYPE" />
</sddl>
