- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Perl and DATATRIEVE
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2004 10:13 PM
05-12-2004 10:13 PM
Perl and DATATRIEVE
Can I run a DTR directly from a perl (not running a DCL containing DTR)?
Thanks,
Iris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 12:57 AM
05-13-2004 12:57 AM
Re: Perl and DATATRIEVE
Could you give us some additional details please on what you are trying to accomplish.
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:31 AM
05-13-2004 01:31 AM
Re: Perl and DATATRIEVE
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.
Did you not just try? Was there a problem?
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:41 AM
05-13-2004 01:41 AM
Re: Perl and DATATRIEVE
I have a perl script that convert long text file to a csv.
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.
Thanks,
Iris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:44 AM
05-13-2004 01:44 AM
Re: Perl and DATATRIEVE
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:53 AM
05-13-2004 01:53 AM
Re: Perl and DATATRIEVE
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?
Many ways to skin that cat.
- As Ian mentions... check out the IDX access module for perl.
- 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).
- Or keep a DCL process alive to do READ/KEY from.
- 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).
- Have DTR call perl or anhy other language to do the CSV.
- Have DTR do the CSV?
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 02:19 AM
05-13-2004 02:19 AM
Re: Perl and DATATRIEVE
http://search.cpan.org/~bhughes/VMS-IndexedFile-0_02/
If you don't have a C compiler, there is a prebuilt Perl 5.6.1 here that has the extension in it:
http://www.sidhe.org/misc/perl-5_6_1-vmsaxp-7_2-1.zip
and I believe the Freeware 6.0 CD has a Perl 5.8.3 kit that also includes VMS::IndexedFile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2004 03:17 PM
05-16-2004 03:17 PM
Re: Perl and DATATRIEVE
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.
Greetings, Martin