- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Problem: Open Variable-length record format as...
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-21-2007 12:30 AM
тАО03-21-2007 12:30 AM
Problem: Open Variable-length record format as streamlf
I wish to Open Variable-length record format as streamlf format file.
open (file,mode,0,"rfm=stmlf")
cant do it for me.
What I'm doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 01:02 AM
тАО03-21-2007 01:02 AM
Re: Problem: Open Variable-length record format as streamlf
I forget "ctx=stm"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 09:45 AM
тАО03-21-2007 09:45 AM
Re: Problem: Open Variable-length record format as streamlf
Simple answer is "you can't do that". If the file is variable length, that's the end of it. Just open it, and RMS will interpret the record format for you, returning records in a manner that makes sense in whatever programming language you're using.
What are you really trying to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 10:15 AM
тАО03-21-2007 10:15 AM
Re: Problem: Open Variable-length record format as streamlf
Whether a file is variable-length or stream-xxxis a permanent attribute. As such the 'rfm=stmlf' is only a CREATE time option. As yo probably know, you can verify an existing file with DIR/FULL or F$FILE(file,"RFM").
You can change the RFM through CONVERT
(VMS 8.3: CONVER/FDL="RECORD; FORMAT STREAM_LF" var stm
Mostly the RFM _should_ be transparent to the application though!
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 02:11 AM
тАО03-22-2007 02:11 AM
Re: Problem: Open Variable-length record format as streamlf
In Clamav antivirus porting process, I find a problem viruses in var-record format html files cannot be detected. I just find that a
read() function looks like
i=read(fd, *buffer, 256);
reads only 30 symbols instead of 256.
If I change file attributest to
SET FILE/ATTR=(RFM:STMLF)
it works nice.
when I add in open() function "ctx=stm","rfm=stmlf" it solves my problem.
This is non-good approach may be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 02:17 AM
тАО03-22-2007 02:17 AM
Re: Problem: Open Variable-length record format as streamlf
You are NOT supposed to do a SET FILE/ATTR=(RFM:STMLF) on a variable length file unless you know exactly what you are doing, in which case you would not ask here.
By doing that the record length (16 bit binary integer record header and optional 8 bit word allignment fill per record will show up in the data stream creating nasty surprises.
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 02:20 AM
тАО03-22-2007 02:20 AM
Re: Problem: Open Variable-length record format as streamlf
I'm trying to use ClamAV ported by Alexey to perform an automatic virus-scan on all my incoming E-mails. To intercept the E-mail contents I use the package DELIVER (from Hunter's site???). This package written in Pascal give the file with a variable record format.
Than I use ClamAV to check the file, but no virusses are detected ever. However if you change the file format (set file/attr=rfm:stmlf) ClamAV suddenly detects the "correct" virus (as discovered by Alexey last night)
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 02:45 AM
тАО03-22-2007 02:45 AM
Re: Problem: Open Variable-length record format as streamlf
On Unix, everything is a byte stream.
On OpenVMS, it's a record stream and the tool or the C RTL has to reassemble it. Depending on the record structures, a straight byte-stream operation will potentially encounter either the VFC bytes, or the carriage control, or other such low-level record data. Sequential files are not directly transportable, save for a very few specific formats.
This looks to be the same basic problem as the Apache web server hit. You might look to see what was done to adjust that code. (There was a release or two where all files served by SWS/Apache had to be stream LF, and that was fixed in the most recent release(s).
--
Haven't looked to see if ClamAV is dealing with the polymorphic or metamorphic malware that's now loose in the wild. But that's fodder for another discussion.