<?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: Perl and DATATRIEVE in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275074#M2195</link>
    <description>you can access RMS indexed files directly from perl. I'm unaware of a perl to DTR interface module. Parhaps you could keep DTR running in a subprocess and feed it commands?</description>
    <pubDate>Thu, 13 May 2004 08:44:35 GMT</pubDate>
    <dc:creator>Ian Miller.</dc:creator>
    <dc:date>2004-05-13T08:44:35Z</dc:date>
    <item>
      <title>Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275070#M2191</link>
      <description>Hi all...&lt;BR /&gt;&lt;BR /&gt;Can I run a DTR directly from a perl (not running a DCL containing DTR)?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Iris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 05:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275070#M2191</guid>
      <dc:creator>Iris_8</dc:creator>
      <dc:date>2004-05-13T05:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275071#M2192</link>
      <description>Iris,&lt;BR /&gt;Could you give us some additional details please on what you are trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen</description>
      <pubDate>Thu, 13 May 2004 07:57:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275071#M2192</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2004-05-13T07:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275072#M2193</link>
      <description>&lt;BR /&gt;Yes of course. But the perl must create the same 'environment' as the DCL wrapper would have. Some logical names might be needede. but otherwise you can just fork, or use backticks or 'open' the command and read or write its results. &lt;BR /&gt;Did you not just try? Was there a problem?&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 08:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275072#M2193</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-05-13T08:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275073#M2194</link>
      <description>Well,,,&lt;BR /&gt;&lt;BR /&gt;I have a perl script that convert long text file to a csv. &lt;BR /&gt;For every line i need to query an RMS database via DTR, by using some values from a perl hash. I could - off course - create a DCL that contain the DTR query for each line, run it grab the result into the perl, but I hoped maybe via Perl library (as for RDB), I could DTR directly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Iris</description>
      <pubDate>Thu, 13 May 2004 08:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275073#M2194</guid>
      <dc:creator>Iris_8</dc:creator>
      <dc:date>2004-05-13T08:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275074#M2195</link>
      <description>you can access RMS indexed files directly from perl. I'm unaware of a perl to DTR interface module. Parhaps you could keep DTR running in a subprocess and feed it commands?</description>
      <pubDate>Thu, 13 May 2004 08:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275074#M2195</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-05-13T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275075#M2196</link>
      <description>&lt;BR /&gt;What 'value' does DTR add? Does it just return a record for a given key or is is doing some joins, table-lookups, blah blah?&lt;BR /&gt;&lt;BR /&gt;Many ways to skin that cat.&lt;BR /&gt;&lt;BR /&gt;- As Ian mentions... check out the IDX access module for perl.&lt;BR /&gt;&lt;BR /&gt;- As Ian also mentions... just keep DTR alive in a (forked/opened) subprocess and feed it new commands, retrieving each result from an other mailbox (sys$output for dtr).&lt;BR /&gt;&lt;BR /&gt;- Or keep a DCL process alive to do READ/KEY from.&lt;BR /&gt;&lt;BR /&gt;- Or (my prefence probably) have that perl script spit out an intermediate file, use that in the request to DTR (to do a 'cross' with it).&lt;BR /&gt;&lt;BR /&gt;- Have DTR call perl or anhy other language to do the CSV.&lt;BR /&gt;&lt;BR /&gt;- Have DTR do the CSV?&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 08:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275075#M2196</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-05-13T08:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275076#M2197</link>
      <description>The cleanest way to do this, as some have indicated, is to use the Perl extension designed specifically for accessing RMS indexed files via a tied hash.  You will find it here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~bhughes/VMS-IndexedFile-0_02/" target="_blank"&gt;http://search.cpan.org/~bhughes/VMS-IndexedFile-0_02/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you don't have a C compiler, there is a prebuilt Perl 5.6.1 here that has the extension in it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sidhe.org/misc/perl-5_6_1-vmsaxp-7_2-1.zip" target="_blank"&gt;http://www.sidhe.org/misc/perl-5_6_1-vmsaxp-7_2-1.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I believe the Freeware 6.0 CD has a Perl 5.8.3 kit that also includes VMS::IndexedFile.</description>
      <pubDate>Thu, 13 May 2004 09:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275076#M2197</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-05-13T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl and DATATRIEVE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275077#M2198</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as the person who did the kit for the freeware V6 I can confirm that VMS::IndexedFile is on the CD. I do use it fairly regularly and it does work nicely for me.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Sun, 16 May 2004 22:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-and-datatrieve/m-p/3275077#M2198</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-05-16T22:17:10Z</dc:date>
    </item>
  </channel>
</rss>

