- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Openvms NFS <CR> in files
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-11-2003 08:11 AM
11-11-2003 08:11 AM
Openvms NFS <CR> in files
The problem is: The NFS (DOS and Windows versions) put a CR at the end of each line of text. This causes our Fortran program to not read it correctly. Is there a command or something I can do to have it not place the CR in the file? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 09:10 AM
11-11-2003 09:10 AM
Re: Openvms NFS <CR> in files
Maybe
TCPIP ADD EXPORT /OPTION=NODATA_CONVERSION
could make a difference?
See TCPIP HELP ADD EXPORT/OPTIONS for more info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 12:12 AM
11-12-2003 12:12 AM
Re: Openvms NFS <CR> in files
The normal way we handle file writes (through pathworks) is writing out to the file on NFS and it works fine. When we do the same on the DOS and Windows NFS machines, the alpha box sees the "CR" at the end of the line.
Let me know if you have any suggestions please or if any of you have encountered similar problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 03:49 AM
11-12-2003 03:49 AM
Re: Openvms NFS <CR> in files
I'm sure there is some setting in NFS to fix this for future transfers, or maybe use Pathworks instead
It is likely that you can fix the current file with a SET FILE/ATTR=RFM command, possibly followed by a convert. We need a little more detail: DIR/FULL and DUMP/BLOCK=COUNT=1
Please ATTACH that output as a .TXT file to a further reply, as this forum stuff mngles spaces.
A potential solution is:
SET FILE/ATTR=RFM=STM old
CONVERT/FDL=NL: old new
Or you can just use a perl/awk/dcl script to cut of the excess CR:
perl -e "while (<>) {chop; chop; print ""$_\n""}" < tmp.tmp > tt:
gawk /com="{gsub(/\r$/,"""");print}" old /outp=new
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 04:35 AM
11-12-2003 04:35 AM
Re: Openvms NFS <CR> in files
http://h71000.www7.hp.com/wizard/wiz_3707.html
One question..is there a way to forace all files in a directory to have certain attributes (i.e. /Attribute=(RFM=STM)).
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 05:36 AM
11-12-2003 05:36 AM
Re: Openvms NFS <CR> in files
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 05:41 AM
11-12-2003 05:41 AM
Re: Openvms NFS <CR> in files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 05:40 AM
11-19-2003 05:40 AM
Re: Openvms NFS <CR> in files
set file/attribute=(RFM=STM)
when the existing RFM is STMLF to the batch jobs that process the files and it is now working.