- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: ERASE ALL ON A DATATRIEVE CROSS
Operating System - OpenVMS
1753905
Members
9882
Online
108810
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО11-28-2007 12:09 AM
тАО11-28-2007 12:09 AM
We cross two files A and B over X(a common field).
From the result,i need to delete the records in A that matches with B.
READY A WRITE
READY B SHARED
FIND ALL A CROSS B OVER X
ERASE ALL
This is not working. Kindly give a solution.
From the result,i need to delete the records in A that matches with B.
READY A WRITE
READY B SHARED
FIND ALL A CROSS B OVER X
ERASE ALL
This is not working. Kindly give a solution.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 01:28 AM
тАО11-28-2007 01:28 AM
Re: ERASE ALL ON A DATATRIEVE CROSS
Panneer,
welcome to the OpenVMS ITRC forum.
Would you please kindly provide any error message returned by DTR when you use ERASE ALL in this context ?
This may help others to diagnose the problem.
Volker.
welcome to the OpenVMS ITRC forum.
Would you please kindly provide any error message returned by DTR when you use ERASE ALL in this context ?
This may help others to diagnose the problem.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 02:16 AM
тАО11-28-2007 02:16 AM
Solution
It's trying to delete records from both domains. You don't want that.
There are Datatrieve manuals online at:
http://www.sysworks.com.au/swadm_dat_root/axpdocjun04/dtraxp72a.html
From there:
" 8.8 Erasing Records
:
You cannot erase records in a view based on more than one domain or records specified by an RSE that contains a CROSS clause."
You probably want to build a FOR loop.
here is an example using 'yachts' where I edited yacht.seq to have fewer records than yachts.
$ copy yacht.dat_orig yacht.dat
$ datatrieve
DATATRIEVE V7.3
Digital Query and Report System
Type HELP for help
DTR> ready yachts write
DTR> ready yachts_sequential shared read
DTR> find yachts_sequential
[49 records found]
DTR> find yachts
[113 records found]
DTR> for a in yachts_sequential erase all of yachts with type = a.type;
DTR> find yachts
[64 records found]
An other Datatrieve site, with unfortunately some stale links:
http://dtrwiz.home.netcom.com/
hth,
Hein.
There are Datatrieve manuals online at:
http://www.sysworks.com.au/swadm_dat_root/axpdocjun04/dtraxp72a.html
From there:
" 8.8 Erasing Records
:
You cannot erase records in a view based on more than one domain or records specified by an RSE that contains a CROSS clause."
You probably want to build a FOR loop.
here is an example using 'yachts' where I edited yacht.seq to have fewer records than yachts.
$ copy yacht.dat_orig yacht.dat
$ datatrieve
DATATRIEVE V7.3
Digital Query and Report System
Type HELP for help
DTR> ready yachts write
DTR> ready yachts_sequential shared read
DTR> find yachts_sequential
[49 records found]
DTR> find yachts
[113 records found]
DTR> for a in yachts_sequential erase all of yachts with type = a.type;
DTR> find yachts
[64 records found]
An other Datatrieve site, with unfortunately some stale links:
http://dtrwiz.home.netcom.com/
hth,
Hein.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP