- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Using READ/DELETE
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
Discussions
Discussions
Forums
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
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
тАО04-29-2011 07:53 AM
тАО04-29-2011 07:53 AM
Using READ/DELETE
If I READ/KEY=0/INDEX=nnnn to get the first record with that key, I can then delete that record via READ/DELETE.
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.
Can someone give me an example of how to do this, or isn't his possible?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 08:53 AM
тАО04-29-2011 08:53 AM
Re: Using READ/DELETE
$ READ F R
$ SHOW SYMBOL R
R = "A2"
$ READ/DELETE F R
$ SHOW SYMBOL R
R = "A3"
Then close the file and check and see that record A3 has been deleted.
Not very friendly, but if you have exclusive access to the file you will be able to predict which record will be deleted.
:-|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 09:12 AM
тАО04-29-2011 09:12 AM
Re: Using READ/DELETE
1) VMS Version and platform (Alpha,VAX,I64)
2) Application language
Thanks,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 09:13 AM
тАО04-29-2011 09:13 AM
Re: Using READ/DELETE
OpenVMS V8.3
DCL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2011 09:32 AM
тАО04-29-2011 09:32 AM
Re: Using READ/DELETE
See sample below.
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.
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 :-).
Hein
$ convert tt: tmp.idx/fdl="fil; org ind; key 0; seg0_l 4; dup yes"
0001
0002aap
0002noot
0002mies
0003
Exit
$ open/read/write x tmp.idx
$ read/key="0002"/ind=0 x rec
$ read x rec
$ show symb rec
REC = "0002noot"
$ read/dele x rec ! Should read, and delete 0002mies
$ show symb rec
REC = "0002mies"
$ close x
$ type tmp.idx
0001
0002aap
0002noot
0003