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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:  PRODUCT_STATUS.SDDL -->
<!-- -->
<!--  Purpose:      This SDDL file defines the PRODUCT_STATUS relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       PR      Who                       Reason-->
<!--  - - - -    - - - -   - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  11/30/00   44862     Baum  Original implementation-->
<lm>  07/03/03   48821     CTB   Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
 

    <record name="PRODUCT_STATUS_TYPE"> 
 
 
        <description>This relation is used to identify the completion status of
                   all FGS, AST, and GSA products in order to control 
                   telemetry file cleanup.  The records are created with N for
                   complete_flag. This relation is designed to be joined to
                   product_eng_map to determined when all the products, 
                   identified in product_eng_map by product_type and 
                   product_rootname, have been marked completed.

                   For reprocessing, all the products to be reprocessed should
                   have the complete_flag interactively reset to N. For 
                   replans, any records for dataset no longer present in 
                   qolink. must be deleted. Only one record for each product 
                   and type is allowed. </description>



            <field name="product_rootname">
                    <type>C14</type>
                    <description>IPPPSSOOT for jitter or astrometry products;
                         GYYYYDDDHHMMSS for GS acquisition data.</description>

            </field>

            <field name="product_type">
                    <type>C3</type>
                    <description>FGS for jitter, AST for astrometry, or GSA for GS 
                         acqusition data.</description>

            </field>

            <field name="complete_flag">
                    <type>C1</type>
                    <description>(Y/N) set to Y by cleanup software indicating
                         this dataset has been processed and no longer prevents
                         cleanup of telemetry files. </description>
            </field>

    </record>
 
 
 
 
    <relation name="product_status">
 
        <type>PRODUCT_STATUS_TYPE</type>

        <description>FGS, GSA, or AST Product Completion Relation</description>

        <subsystem_using>OPUS</subsystem_using>

        <index name="product_status_1">
            <type>unique clustered</type>
            <field name="product_rootname"/>
            <field name="product_type"/>
        </index>

    </relation>
</sddl>
