- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- -RMS-F-ORG _ What error is this?
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
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
тАО08-16-2010 12:46 PM
тАО08-16-2010 12:46 PM
I can normally type these files, but when ever I give /TAIL qualifier, I get the following error. These files are pretty big and I cant type it normally. Please help.
ty/tail $1$DKD1000:[ORACLE817.NETWORK.LOG]LISTENER_xxx.LOG;
%TYPE-W-OPENIN, error opening $1$DKD1000:[ORACLE817.NETWORK.LOG]LISTENER_xxx.LOG;1 as input
-SYSTEM-E-UNSUPPORTED, unsupported operation or function
-RMS-F-ORG, invalid file organization value
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2010 12:50 PM
тАО08-16-2010 12:50 PM
Re: -RMS-F-ORG _ What error is this?
Directory $1$DKD1000:[ORACLE817.NETWORK.LOG]
LISTENER_XXX.LOG;1 File ID: (10143,7,0)
Size: 576207/576216 Owner: [RY404B,ORACLE]
Created: 10-MAR-2003 19:06:14.73
Revised: 2-AUG-2010 12:15:40.59 (61)
Expires: 5-FEB-2016 16:44:00.64
Backup:
Effective:
Recording:
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 576216, Extend: 0, Global buffer count: 0, No version limit
Record format: Stream_LF, maximum 0 bytes, longest 32767 bytes
Record attributes: Carriage return carriage control
RMS attributes: None
Journaling enabled: None
File protection: System:RWED, Owner:RWED, Group:RE, World:
Access Cntrl List: None
Client attributes: None
Total of 1 file, 576207/576216 blocks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2010 01:31 PM
тАО08-16-2010 01:31 PM
SolutionTYPE/TAIL is a bit of a kludge. Counting back records from the end of the file is a rather ugly, hit or miss algorithm (see source code). In order to make the heuristics being used work at all, it's necessary to limit the organisation and record length of the files for which it works. See HELP TYPE/TAIL:
-------
... You can use TYPE/TAIL only if all of the following criteria are true:
o File organization is sequential.
o The longest record is less than 512 bytes.
o The record format is either VAR, VFC, STM, STRCM or STMLF (for more information, see the description of FAB$B_RFM in the OpenVMS Record Management Services Reference Manual).
o The file being typed is on a device that supports random access. The TYPE/TAIL command does not work on magnetic tape drives.
Even with this criteria, some file conditions cannot be anticipated and may not allow display of the last several lines of a log file, resulting in the following error message:
%TYPE-W-READERR, error reading DEVICE:[DIRECTORY]FILE.EXT;1
-SYSTEM-E-UNSUPPORTED, unsupported operation or function
-------
In your case the most likely offending attribute is:
>Record format: ... longest 32767 bytes
As it happens, this may be an incorrect value, being an artefact of another OpenVMS kludge, in the way the DECC RTL deals with RMS file attributes. You could try:
$ SET FILE/ATTRIBUTE=(LRL:511) $1$DKD1000:[ORACLE817.NETWORK.LOG]LISTENER_xxx.LOG;
$ TYPE/TAIL
$1$DKD1000:[ORACLE817.NETWORK.LOG]LISTENER_xxx.LOG;
(now restore to original value)
$ SET FILE/ATTRIBUTE=(LRL:32767) $1$DKD1000:[ORACLE817.NETWORK.LOG]LISTENER_xxx.LOG;
[of course, if your file really does have records longer than 512 bytes in the /TAIL window, you might not get the results you want]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2010 01:36 PM
тАО08-16-2010 01:36 PM
Re: -RMS-F-ORG _ What error is this?
Your DIRECTORY/FULL says the longest record is 32767 bytes. True? Maybe a convert would help? Or a SET FILE/ATTRIBUTES. Personally, I would try the SET FILE/ATTRIBUTES first. Maybe something like:
$ SET FILE/ATTRIBUTES=MRS=512
I have heard that there are other "freeware" tail programs. One of them might help you.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2010 02:05 PM
тАО08-16-2010 02:05 PM
Re: -RMS-F-ORG _ What error is this?
Type/tail is not just a kludge, it is a total disgrace with arbitrary, artificial, un-needed restrictions. :^)
It does not handle the simplest of files like fixed length record...
It worries about longest record length too early. To some extend that might actually be fault as I suggested an early heuristic! (walk backwards for 'words' with a small value likely to be a record length, then check whether they point to the start position). Looks like that was taken too directly / too inflexible
Anyway... so yeah... try lying about the LRL and hope there are no actual very long records at the tail.
cheers,
Hein
$ convert login.com tmp.tmp/fdl="record; form fix; size 20"/pad/trunc
$ type/tail tmp.tmp
%TYPE-W-OPENIN, error opening TMP.TMP as input
-SYSTEM-E-UNSUPPORTED, unsupported operation or function
-RMS-F-ORG, invalid file organization value
$ copy login.com tmp.tmp
$ set file/attr=lrl=2000 tmp.tmp
$ type/tail tmp.tmp
%TYPE-W-OPENIN, error opening TMP.TMP as input
-SYSTEM-E-UNSUPPORTED, unsupported operation or function
-RMS-F-ORG, invalid file organization value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2010 10:59 PM
тАО08-16-2010 10:59 PM
Re: -RMS-F-ORG _ What error is this?
GNU textutils tail works well in most cases, where VMS type/tail fails.
On VMS GNV/bash tail, can be used from DCL command line as long as no wildcard file specs are involved.
I have also a perl tail implementation from PerlPowerTools working quite well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 01:47 AM
тАО08-17-2010 01:47 AM
Re: -RMS-F-ORG _ What error is this?
GNV's tail, when invoked from the DCL command line, expects a Posix path specification to the file. So manually translate the [.sub]file.txt;1 to sub/file.txt. And no, you can't 'tail' the version ;-1 of a file.
On the other hand, the type/tail error message in the OP is misleading, at least I wouldn't have expected the big LRL to be an "invalid file organization value".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 03:08 AM
тАО08-17-2010 03:08 AM
Re: -RMS-F-ORG _ What error is this?
The perl implementation I mentioned comes nearest, it understands VMS and Unix style file/path names, and handles stream as well as var files.
I stumbled in my archive over a VMS tail implementation from a VMS SIG tape:
V2.4 - 09/10/91
Author:
D. Shepperd, Atari Games, Corp. shepperd@dms.UUCP
It analyses the file format and then chooses the right access method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 06:30 AM
тАО08-17-2010 06:30 AM
Re: -RMS-F-ORG _ What error is this?
Many thanks for your time and reply. file attribute changing worked fine. Thanks.
Im closing this thread