- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- File types after Pathworks copies a file to my XP ...
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
07-11-2005 04:10 AM
07-11-2005 04:10 AM
File types after Pathworks copies a file to my XP machine
Now I drag the file back. The file is marked STREAM. So I use
"set file /attr=(org:seq, rfm:fix, lrl:52)
Notice the lrl is 52, not 50. I need to do this because the CR-LF is still there.
Is there a way around this? Can I tell PW to just copy the file itself, wo/ the CR-LF? And can I do this on a file by file basis, or do I set a default somewhere?
Dom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 09:06 AM
07-11-2005 09:06 AM
Re: File types after Pathworks copies a file to my XP machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 12:39 PM
07-11-2005 12:39 PM
Re: File types after Pathworks copies a file to my XP machine
Instead of SET FILE, it would probably be better to CONVERT the file back to fixed length.
$ CONVERT/FDL=SYS$INPUT infile outfile
record
format fixed
size 50
Unfortunately the Windows & Unix worlds don't have a concept of "file type". The upshot is, no matter what is done to a file to translate the file, it will be wrong for someone!
On the other hand... if the program reading your file is using RMS services and not actually specifying the record format, it shouldn't matter. RMS will return the same record regardless of the record format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 10:32 PM
07-11-2005 10:32 PM
Re: File types after Pathworks copies a file to my XP machine
If the original file, as you suggest, indeed had the 'FIXED' record format, then I agree with Andy that pathworks should leave it alone. An other file type it should leave alone is 'user defined, aka undefined' as in SET FILE/ATTR=RFM=UDF. It would be interesting to try that, but of course for any prior transfer the damage is already done.
If, back on the VMS side, the record access is through simple RMS gets (like TYPE or SEARCH or an HLL read) then as John observe, then file will work transparently as RMS will eat the CR-LF as record seperator.
If direct access is done (RAB$_RAC==RA$C_KEY) then you can either change the file attributes as you did and accept the CR LR as databytes, or you will have to convert the file to get rid of them.
As John shows the command for that would be :
$ CONVERT/FDL=SYS$INPUT infile outfile
record; format fixed; size 50
btw: This would be a great example of the requested new covert DCL option to just pass an FDL file as a string!
If you leave the file 'RAC=STM' as it was, then this is all that is needed. But after that set file /attr=(org:seq, rfm:fix, lrl:52) you would have to add the /TRUN switch to toss the excess CRLF chars.
You may also want to check out the EXCHANGE/NET conversion options to recorver the file.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 02:06 AM
07-12-2005 02:06 AM
Re: File types after Pathworks copies a file to my XP machine
new file created by PC have stream attribute by default.
I guess you can change this defalt as follow:
$ ADMIN MOD SHARE
/HOST=(RMS:SEQUENTIAL)
or else
$ ADMIN MOD SHARE
/HOST=(RMS:UNDEF)
I think if you set UNDEF after copy you have to set file attribute with SET FILE command.
Warning: I never tryed this command, it's appear to me by the help.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 02:08 AM
07-12-2005 02:08 AM
Re: File types after Pathworks copies a file to my XP machine
What is your goal? Apparently, the file is being created on VMS. Do you need to use the file on Windows, VMS or both?
Windows files are /attr=(org:seq, rfm:stm, lrl:0, mrs:0) and if you are creating fixed length records for a Windows application, you must create the RMS file with those attributes (plus rat:none if you wish). I've not found a way to $convert or $set file the RMS file to get it to the correct Windows format.
If PW detects records in a file, then it will convert those RMS records into something it thinks Windows needs.
-Doug