<?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 Re: Using READ/DELETE in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782752#M41553</link>
    <description>I found that READ/DELETE without any /KEY etc would delete the *next* record with the current key.  So:&lt;BR /&gt;&lt;BR /&gt;$ READ F R&lt;BR /&gt;$ SHOW SYMBOL R&lt;BR /&gt;  R = "A2"&lt;BR /&gt;$ READ/DELETE F R&lt;BR /&gt;$ SHOW SYMBOL R&lt;BR /&gt;  R = "A3"&lt;BR /&gt;&lt;BR /&gt;Then close the file and check and see that record A3 has been deleted.&lt;BR /&gt;&lt;BR /&gt;Not very friendly, but if you have exclusive access to the file you will be able to predict which record will be deleted.&lt;BR /&gt;&lt;BR /&gt;:-|&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Apr 2011 15:53:12 GMT</pubDate>
    <dc:creator>RBrown_1</dc:creator>
    <dc:date>2011-04-29T15:53:12Z</dc:date>
    <item>
      <title>Using READ/DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782751#M41552</link>
      <description>I have an indexed file with one key, but which allows duplicate records for that key.&lt;BR /&gt;&lt;BR /&gt;If I READ/KEY=0/INDEX=nnnn to get the first record with that key, I can then delete that record via READ/DELETE.&lt;BR /&gt;&lt;BR /&gt;If I use READ/KEY=0/INDEX=nnn to get to the first record, then issue some number of simple READs to move ahead, I can't seem to then delete that record - the READ/DELETE still seems to delete the first record found.&lt;BR /&gt;&lt;BR /&gt;Can someone give me an example of how to do this, or isn't his possible?&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Fri, 29 Apr 2011 14:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782751#M41552</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2011-04-29T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using READ/DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782752#M41553</link>
      <description>I found that READ/DELETE without any /KEY etc would delete the *next* record with the current key.  So:&lt;BR /&gt;&lt;BR /&gt;$ READ F R&lt;BR /&gt;$ SHOW SYMBOL R&lt;BR /&gt;  R = "A2"&lt;BR /&gt;$ READ/DELETE F R&lt;BR /&gt;$ SHOW SYMBOL R&lt;BR /&gt;  R = "A3"&lt;BR /&gt;&lt;BR /&gt;Then close the file and check and see that record A3 has been deleted.&lt;BR /&gt;&lt;BR /&gt;Not very friendly, but if you have exclusive access to the file you will be able to predict which record will be deleted.&lt;BR /&gt;&lt;BR /&gt;:-|&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782752#M41553</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2011-04-29T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using READ/DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782753#M41554</link>
      <description>A little more info is required here to provide you with a reasonable explanation and answer:&lt;BR /&gt;&lt;BR /&gt;1) VMS Version and platform (Alpha,VAX,I64)&lt;BR /&gt;2) Application language&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 29 Apr 2011 16:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782753#M41554</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2011-04-29T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using READ/DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782754#M41555</link>
      <description>Alphaserver&lt;BR /&gt;OpenVMS V8.3&lt;BR /&gt;DCL</description>
      <pubDate>Fri, 29 Apr 2011 16:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782754#M41555</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2011-04-29T16:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using READ/DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782755#M41556</link>
      <description>Hmmm, I do not see the problem.&lt;BR /&gt;See sample below.&lt;BR /&gt;Can you show a 'real' mock-up example of the problem? The description you provided is incorrect, because surely you mean "KEY=nnnn/INDEX=0 when you wrote "KEY=0/INDEX=nnnn", as you also indicated it was a one-key file.&lt;BR /&gt;&lt;BR /&gt;Read /Delete will delete the record is is reading and put the contents in the symbol provided. (Such that you can recover with WRITE/SYMB file record :-).&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;$ convert tt: tmp.idx/fdl="fil; org ind; key 0; seg0_l 4;  dup yes"&lt;BR /&gt;0001&lt;BR /&gt;0002aap&lt;BR /&gt;0002noot&lt;BR /&gt;0002mies&lt;BR /&gt;0003&lt;BR /&gt; Exit&lt;BR /&gt;$ open/read/write x tmp.idx&lt;BR /&gt;$ read/key="0002"/ind=0 x rec&lt;BR /&gt;$ read x rec&lt;BR /&gt;$ show symb rec&lt;BR /&gt;  REC = "0002noot"&lt;BR /&gt;$ read/dele x rec ! Should read, and delete 0002mies&lt;BR /&gt;$ show symb rec&lt;BR /&gt;  REC = "0002mies"&lt;BR /&gt;$ close x&lt;BR /&gt;$ type tmp.idx&lt;BR /&gt;0001&lt;BR /&gt;0002aap&lt;BR /&gt;0002noot&lt;BR /&gt;0003&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2011 16:32:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-read-delete/m-p/4782755#M41556</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-04-29T16:32:53Z</dc:date>
    </item>
  </channel>
</rss>

