- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: number or records in RMS file
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
11-01-2006 04:08 PM
11-01-2006 04:08 PM
number or records in RMS file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 04:52 PM
11-01-2006 04:52 PM
Re: number or records in RMS file
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 05:02 PM
11-01-2006 05:02 PM
Re: number or records in RMS file
sear/stat/noout login.com hallo
Files searched: 1 Buffered I/O count: 6
Records searched: 194 Direct I/O count: 2
Characters searched: 6215 Page faults: 25
Records matched: 0 Elapsed CPU time: 0 00:00:00.01
Lines printed: 0 Elapsed time: 0 00:00:00.03
%SEARCH-I-NOMATCHES, no strings matched
SAP01_Rohwedder. sh sym search*
SEARCH$CHARACTERS_SEARCHED = "6215"
SEARCH$FILES_SEARCHED = "1"
SEARCH$LINES_PRINTED = "0"
SEARCH$RECORDS_MATCHED = "0"
SEARCH$RECORDS_SEARCHED = "194"
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 10:13 PM
11-01-2006 10:13 PM
Re: number or records in RMS file
If you want you program to compute the number of records, then a file with fixed length records can be easily be computed as size of the file (in bytes) divided by the record length. For a variable length record file, you can use the maximum record length and you will get a lower bound on the number of records in the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 10:21 PM
11-01-2006 10:21 PM
Re: number or records in RMS file
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2006 11:37 PM
11-01-2006 11:37 PM
Re: number or records in RMS file
>> How can I find out how many records in a RMS file ?
By counting them!
Seriously.
The only time you can calculate it from the file size is for fixed length records in a sequential file.
(In DCL check out lexical F$FILE items EOF, FFB and MRS)
See also: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=779260
The 'right way' to count depends on your needs, feeds and speeds.
Input:
- Sequential? Indexed?
- Variable length? Fixed length?
- a few MB or several GB of data?
- Currently open file in shared mode?
Output:
- Any performance requirements?
- Any accuracy requirements
- Into program variable or on screen or DCL symbol/logical?
$SEARCH/STAT and $CONVERT/STAT of often reasonable generic tools.
I also use:
$perl -ne "END {print $.}"
GNV's: wc
I wrote a specific program (attached) for this problem which handles general files, but specifically OPEN, SHARED, indexed files with global buffers where you do not record lockign activity, and you do not want the count tool to flush out the useful global buffers. It outputs to screen, and into a symbol.
Finally, for large indexed files ( > 10 GB ) you probably want to use a serious tool. Check out the 'DIX' freeware, or the SELECT commercial tool by EGH (contact me for details)
Regards,
Hein van den Heuvel
HdvH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2006 02:24 PM
11-23-2006 02:24 PM