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

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

<sddl>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!--  SDDL Name:    FASTRAK.SDDL-->
<!-- -->
<!--  Purpose:      This SDDL file defines the FASTRAK relation.-->
<!-- -->
<!--  Modification History:-->
<!-- -->
<!--    Date       OPR      Who                       Reason-->
<!--  - - - -    - - - -    - -   - - - - - - - - - - - - - - - - - - - - - -->
<!--  11/03/06   49671      FHam  Original implementation-->
<lm>  11/03/06   49671      FHam Converted to XML format </lm> <!-- last mod -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


    <record name="FASTRAK_TYPE">

        <description>This is a repository for determining which data
	             should be fast tracked (using ftp or sftp).  It 
		     also contains user access information.</description>
                                     

            <field name="rqn">
                    <type>I2</type>
                    <description>A unique number defined per 
                                 fastrak request. An rqn value of
                                 zero is reserved for fastrak 
                                 login authentication.</description>
            </field>

            <field name="program_id">
                    <type>C3</type>
                    <description>Defines a 3 alphanumeric character 
                                 identifier (2nd through and including the 
                                 4th characters in the OSF). For HST
                                 observations this is the program ID.
                                 All entries are in uppercase.</description>
            </field>

            <field name="obset_id">
                    <type>C2</type>
                    <description>Defines a 2 alphanumeric character 
                                 identifier (5th and 6th characters in 
                                 the OSF). For HST observations this is the
                                 obset ID. All entries are in uppercase.</description>
            </field>

            <field name="ob_number">
                    <type>C3</type>
                    <description>Defines a 2 alphanumeric 
                                 character identifier (7th and
                                 8th characters in the OSF). For
                                 HST observations this is the 
                                 ob number. All entries are in 
                                 uppercase.</description>
            </field>

            <field name="active">
                    <type>C1</type>
                    <description>Request status flag, Y or N. Y indicates that this 
                       request shall be transferred if an OSF match is found. 
                       N indicates that no transfer shall occur even if an
                       OSF match is found.</description>
            </field>

            <field name="account">
                    <type>C*25</type>
                    <description>The 25 alphanumeric character field containing the name 
                       of the user account on the remote machine where the data 
                       will be transferred to.  This field is case sensitive.</description>
            </field>
 
            <field name="destination_dir">
                    <type>C*80</type>
                    <description>The 80 alphanumeric character field containing the 
                       directory name on the remote machine where the data 
                       will be transferred to.  This field is case sensitive.</description>
            </field>

            <field name="data_id">
                    <type>C3</type>
                    <description>The 3 alphanumeric character field containing the data ID 
                       as contained in the OSF. This data ID tells (via the 
                       fastrak.resource file) fastrak where to find the local 
                       copy of the data to be transferred.</description>
            </field>
	    
            <field name="inst">
                    <type>C1</type>
                    <description>The single alphanumeric character containing the 
                       instrument ID. All entries are in uppercase.</description>
            </field>
	    
	    <field name="transfer_filetypes">
                    <type>C*40</type>
                    <description>A 40 alphanumeric character indicating which file 
                       types to transfer.  The unique entry of ALL will 
                       cause the transfer of all data in the local directory
                       that match the selection criteria. To transfer individual
                       file types, entries such as "raw flt spt" are acceptable
                       for files that have names like *_fff.* where fff is 
                       the file type.</description>
            </field>

            <field name="email_notification">
                    <type>C1</type>
                    <description>A status flag, Y or N. Y indicates that this 
                       request shall email a notification if the transfer
                       encounters a problem. N indicates that no email 
                       will be sent even if a transfer problem is encountered.</description>
            </field>
	    
            <field name="umask">
                    <type>C3</type>
                    <description>A 3 numeric string indicating the Unix umask setting
                       to define before file transfer.  A typical value might
                       be 777.</description>
            </field>
	    
	    <field name="copy_members">
                    <type>C1</type>
                    <description>A status flag, Y or N. Y indicates that if a
                       HST association OSF is to be acted upon, then fastrak
                       will attempt to transfer individual members of the 
                       association as well as the association files.
                       N, the default, indicates that no members will be 
                       transferred.</description>
            </field>
	    
            <field name="destination_machine">
                    <type>C*80</type>
                    <description>The 80 alphanumeric character field containing the 
                       name of the machine where the data will be transferred 
                       to.  An example would be mymachine.here.com. This field 
                       is case sensitive.</description>
            </field>
	    
            <field name="ftp_type">
                    <type>C1</type>
                    <description>A status flag, Y or N. Y indicates that this 
                       request shall use sftp to transfer the data. N indicates 
                       that ftp will be used.  N is the default.</description>
            </field>
	    
	    <field name="enc_pwd">
                    <type>C*100</type>
                    <description>The 100 alphanumeric character field containing the
                       encrypted password for the account defined in the 
                       account field.</description>
            </field>
 
    </record>


    <relation name="fastrak">

        <type>FASTRAK_TYPE</type>

        <description>Fastrak Relation</description>

        <subsystem_using>OPUS</subsystem_using>

    </relation>
</sddl>
