<?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 DTR midification suggestions please in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dtr-midification-suggestions-please/m-p/4536154#M43168</link>
    <description>I am using DTR for querying the records &lt;BR /&gt;&lt;BR /&gt;The file that I am using is of 1536 bytes length and the copybook associated with that file is having header and detail records&lt;BR /&gt;(means Detail records are redefined by header records by redefines clause) &lt;BR /&gt;so if I am querying the first 10 records with alt-key-type = "4" and it is displaying both the header and detail records &lt;BR /&gt;and If I modify all the queried records with a Header field then the detail records are also getting modified. &lt;BR /&gt;I dont know why this is happening I can filter the detail and header records separately for querying but &lt;BR /&gt;My doubt is that DTR cannot handle these type of false changes &lt;BR /&gt;since it will effect mostly in the testing process.&lt;BR /&gt;Is there any other way? &lt;BR /&gt;and I am using cobol programs for execution&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Nov 2009 14:57:18 GMT</pubDate>
    <dc:creator>RAVI KISHORE_1</dc:creator>
    <dc:date>2009-11-18T14:57:18Z</dc:date>
    <item>
      <title>DTR midification suggestions please</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dtr-midification-suggestions-please/m-p/4536154#M43168</link>
      <description>I am using DTR for querying the records &lt;BR /&gt;&lt;BR /&gt;The file that I am using is of 1536 bytes length and the copybook associated with that file is having header and detail records&lt;BR /&gt;(means Detail records are redefined by header records by redefines clause) &lt;BR /&gt;so if I am querying the first 10 records with alt-key-type = "4" and it is displaying both the header and detail records &lt;BR /&gt;and If I modify all the queried records with a Header field then the detail records are also getting modified. &lt;BR /&gt;I dont know why this is happening I can filter the detail and header records separately for querying but &lt;BR /&gt;My doubt is that DTR cannot handle these type of false changes &lt;BR /&gt;since it will effect mostly in the testing process.&lt;BR /&gt;Is there any other way? &lt;BR /&gt;and I am using cobol programs for execution&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dtr-midification-suggestions-please/m-p/4536154#M43168</guid>
      <dc:creator>RAVI KISHORE_1</dc:creator>
      <dc:date>2009-11-18T14:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: DTR midification suggestions please</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dtr-midification-suggestions-please/m-p/4536155#M43169</link>
      <description>You have to find a field (column) in there that allows you to distinguish unambiguously which record is  a header, which one a detail.&lt;BR /&gt;&lt;BR /&gt;For example, there might be a line number which is 0 for the header. In that case your query should be modified to include a selection clause on that column.&lt;BR /&gt;&lt;BR /&gt;That may look like:&lt;BR /&gt;&lt;BR /&gt;MODIFY xxx WITH alt-key-type=4 AND line-number=0 USING BEGIN ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If there are no distinguisng columns, only the order, then you may need you nest your queries, selecting the first records first&lt;BR /&gt;&lt;BR /&gt;FOR FIRST 1 xxx WITH ..&lt;BR /&gt;   IF alt-key-type=4 THEN MODIFY ...&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;FOR outer IN xxx WITH alt-key-type=4 &lt;BR /&gt;   FOR FIRST 1 inner IN xxx MODIFY ...&lt;BR /&gt;&lt;BR /&gt;The presence of RMS keys, total record counts, selected record counts will determine which approach is best.&lt;BR /&gt;&lt;BR /&gt;For further help you probably need to show us some critical columns (4 o 5) from some (2 or 3 ) example data records, perhaps in a .TXT attachment.&lt;BR /&gt;Maybe add output from SHOW xxx_REC ... or at least the first part of that showing the redefine.&lt;BR /&gt;Maybe add some record count indication and rms key/index pointers.&lt;BR /&gt;&lt;BR /&gt;The record bytes length, the only detail you provided so far, is in fact the least interesting attribute of the file!&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Nov 2009 16:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dtr-midification-suggestions-please/m-p/4536155#M43169</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-11-18T16:05:08Z</dc:date>
    </item>
  </channel>
</rss>

