<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Datatrieve help needed in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-help-needed/m-p/4499337#M42868</link>
    <description>I am using datatrieve for querying records of a file and there are about 6300 records in the file I need only one record for testing and that one is some where in the between the records and all the records are randomly placed Is there any way that i can select only that record and delete all the remaining records and continue my testing.and also is there any way i can get the record numbers in the file by using datatrieve</description>
    <pubDate>Thu, 17 Sep 2009 09:45:14 GMT</pubDate>
    <dc:creator>RAVI KISHORE_1</dc:creator>
    <dc:date>2009-09-17T09:45:14Z</dc:date>
    <item>
      <title>Datatrieve help needed</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-help-needed/m-p/4499337#M42868</link>
      <description>I am using datatrieve for querying records of a file and there are about 6300 records in the file I need only one record for testing and that one is some where in the between the records and all the records are randomly placed Is there any way that i can select only that record and delete all the remaining records and continue my testing.and also is there any way i can get the record numbers in the file by using datatrieve</description>
      <pubDate>Thu, 17 Sep 2009 09:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-help-needed/m-p/4499337#M42868</guid>
      <dc:creator>RAVI KISHORE_1</dc:creator>
      <dc:date>2009-09-17T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve help needed</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-help-needed/m-p/4499338#M42869</link>
      <description>&lt;!--!*#--&gt;To delete records the file needs to be an indexed file. Is it?&lt;BR /&gt;&lt;BR /&gt;Why not just create a fresh file with the target record(s)?&lt;BR /&gt;That's easy enough, although the request to select a record by number is 'odd'.&lt;BR /&gt;What identifies that record? &lt;BR /&gt;Why not use that in the record-selection-expression?&lt;BR /&gt;&lt;BR /&gt;To select a particular record to work on in datatrieve you can use SELECT &lt;NUMBER&gt; [collection]&lt;BR /&gt;&lt;BR /&gt;I would use something like:&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; show yachts&lt;BR /&gt;DOMAIN YACHTS USING YACHT ON YACHT.DAT;&lt;BR /&gt;DTR&amp;gt; define domain test using yacht on test.tmp;&lt;BR /&gt;DTR&amp;gt; define file for test;&lt;BR /&gt;DTR&amp;gt; ready yachts read&lt;BR /&gt;DTR&amp;gt; ready test write&lt;BR /&gt;DTR&amp;gt;  test = yachts with running count = 42&lt;BR /&gt;DTR&amp;gt; print test&lt;BR /&gt;&lt;BR /&gt;MANUFACTURER   MODEL     RIG    ALL   WEIGHT BEAM  PRICE&lt;BR /&gt;&lt;BR /&gt; FJORD       MS 33      MS      33    14,000  11&lt;BR /&gt;&lt;BR /&gt;But why not select by contents, rather than number....&lt;BR /&gt;Obviously here this will create a second instance of the same:&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; test = yachts with MANUFACTURER = "FJORD" and model = "MS 33"&lt;BR /&gt;DTR&amp;gt; print test&lt;BR /&gt;MANUFACTURER   MODEL     RIG    ALL   WEIGHT BEAM  PRICE&lt;BR /&gt;&lt;BR /&gt; FJORD       MS 33      MS      33    14,000  11&lt;BR /&gt; FJORD       MS 33      MS      33    14,000  11&lt;BR /&gt;&lt;BR /&gt;Also... you can probably just use DCL or read and write old and new files.&lt;BR /&gt;&lt;BR /&gt;Or even an editor? Why not?&lt;BR /&gt;&lt;BR /&gt;Now did you want an index or two to go with that?&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Thu, 17 Sep 2009 10:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-help-needed/m-p/4499338#M42869</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-09-17T10:55:17Z</dc:date>
    </item>
  </channel>
</rss>

