- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: VMS Sort
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
тАО03-27-2006 04:22 AM
тАО03-27-2006 04:22 AM
VMS Sort
Thanks
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 06:01 AM
тАО03-27-2006 06:01 AM
Re: VMS Sort
What do you want to achieve?
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 06:03 AM
тАО03-27-2006 06:03 AM
Re: VMS Sort
Welcome to the OpenVMS forum.
I'm not sure if what you're asking is at all possible. But, is that really necessary?
SOR$RETURN_REC returns a record in a user buffer, so you have it already under program control. Why do you want to read it a 2nd time? If you need that record a 2nd time, you can simply copy the contents to elsewhere in the program. What are you trying to accomplish?
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 08:30 AM
тАО03-27-2006 08:30 AM
Re: VMS Sort
I'm merging information from three different sorts and then printing out some information.
for example I'm reading information from a customer table and puting the information in one sort, then I'm reading information from an invoice header table and putting that in another sort and I'm also reading information from an invoice detail table and putting that information in another sort.
I know it's possible to filter when reading information from a tables, but in our case it's much faster to do full table scan and put the inforamtion into sort and then merge the information I want to print out.
I would like to print out customer information along with number of invoices and average $ amount.
I know I can setup more sort or arrays to tack this, but I was wondering if it is possible read a recot from a sort of customers and then get the number of invoices for each customer from the invoice header sor and store the number in the sort record so I can read it later when it comes time to print it out.
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 05:02 PM
тАО03-27-2006 05:02 PM
Re: VMS Sort
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:56 PM
тАО03-27-2006 10:56 PM
Re: VMS Sort
Guess answer on that is license cost, then, have you tried the cheap "database" called "rms indexed files"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 01:40 AM
тАО03-28-2006 01:40 AM
Re: VMS Sort
I don't know how solve with merge/sort utility.
I think you could:
1.Create a copy of customer file, indexed by customer code.
2.Create a copy of invoice header file, indexed by invoice number.
3.Sort invoice rows by invoice number and row number.
4.Open for write a new empty file.
5.Read a record from sorted rows file;
5b.Extract invoice number from row record and then use it to read invoice header from indexed copy.
5c.Extract customer code from invoice header record and then use it to read customer record from indexed file.
6.Merge all informations as you prefer.
7.Write new merged record.
8.Read next record and loop at 5.
9.Close all files.
10.Delete indexed copies of files.
11.Good luck.
Antonio
http://it.openvms.org