<RETS_SCRIPT>

  <ACCOUNT Enabled="true">

    <Comment>National Association of REALTORS (NAR), Center for REALTOR Technology (CRT)</Comment>

    <BATCH_LIMIT>2500</BATCH_LIMIT>

    <LOGIN>
      <Host>http://demo.crt.realtors.org:6103/rets/login</Host>
      <User>Joe</User>
      <Password>Schmoe</Password>
      <User_Agent>iCheck RETS Client/1.2</User_Agent>
      <User_Agent_Password></User_Agent_Password>
      <User_Agent_Auth>false</User_Agent_Auth>
      <RETS_Version>RETS/1.5</RETS_Version>
      <Standard_Names>false</Standard_Names>
      <Post_Requests>true</Post_Requests>
    </LOGIN>

    <LOGGING Enabled='true'>
      <File>http.log</File>
    </LOGGING>


    <SEARCH Enabled='false'>
      <Type>Property</Type>
      <Class>ResidentialProperty</Class>
      <Query>((LP=100-1000000))</Query>
      <Output
        LinesTerimatedBy="\r\n"
        FieldsTerminatedBy=","
        FieldsEnclosedBy='"'
        FieldsEscaped="true"
        ColumnNames="false"
      >NAR_ResidentialPropert1.txt</Output>
    </SEARCH>

    <SEARCH Enabled='false'>
      <Type>Property</Type>
      <Class>ResidentialProperty</Class>
      <Format>COMPACT</Format>
      <Select>*</Select>
      <Query>((LP=100-1000000))</Query>
      <QueryType>DMQL2</QueryType>
      <Count>1</Count>
      <Limit>NONE</Limit>
      <Offset></Offset>
      <Output>NAR_ResidentialPropert1.txt</Output>
      <Index>LN</Index>
    </SEARCH>

    <SEARCH Enabled='true'>
        <Type>Property</Type>
        <Class>ResidentialProperty</Class>
        <Format>COMPACT-DECODED</Format>
        <Select>
            LN, LD, LP, AGENTID, BATHS, BEDROOMS, LS, STNUM, STREETDIRECTION, STNAME, CITY, COUNTY, STATE, ZIPCODE,
            YearBuilt, Garage, LivingArea, TotalRooms
        </Select>
        <Query>
            (
                ( LS = Active )
               ,( LP = 250000-450000 )
               ,( BEDROOMS = 3-5 )
               ,( CITY = "Buffalo Grove" )
            )
        </Query>
        <QueryType>DMQL2</QueryType>
        <Count>1</Count>
        <Limit>NONE</Limit>
        <Offset></Offset>
        <Output
            LinesTerimatedBy="\r\n"
            FieldsTerminatedBy="|"
            FieldsEnclosedBy='"'
            FieldsEscaped="true"
            ColumnNames="true" >NAR_ResidentialPropert2.txt</Output>
    </SEARCH>

    <GET_METADATA Enabled='false'>
      <Comment>Get all Metadata</Comment>
      <Type>METADATA-SYSTEM</Type>
      <Format>COMPACT</Format>
      <ID>*</ID>
      <Output>NAR_Metadata-System.txt</Output>
    </GET_METADATA>

    <GET_METADATA Enabled='false'>
      <Comment>Get System Metadata</Comment>
      <Type>METADATA-SYSTEM</Type>
      <Format>COMPACT</Format>
      <ID>0</ID>
      <Output>NAR_Metadata-System.txt</Output>
    </GET_METADATA>

    <GET_METADATA Enabled='false'>
      <Comment>Get all Resources Metadata</Comment>
      <Type>METADATA-RESOURCE</Type>
      <Format>COMPACT</Format>
      <ID>0</ID>
      <Output>NAR_Metadata-Resource.txt</Output>
    </GET_METADATA>

    <GET_METADATA Enabled='false'>
      <Comment>Get all Classes Metadata</Comment>
      <Type>METADATA-CLASS</Type>
      <Format>COMPACT</Format>
      <ID>*</ID>
      <Output>NAR_Metadata-Class.txt</Output>
    </GET_METADATA>

    <GET_METADATA Enabled='false'>
      <Comment>Get all ResidentialProperty Metadata Fields</Comment>
      <Type>METADATA-TABLE</Type>
      <Format>COMPACT</Format>
      <ID>Property:ResidentialProperty</ID>
      <Output>NAR_Metadata-Table.txt</Output>
    </GET_METADATA>

  </ACCOUNT>

</RETS_SCRIPT>

