- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: VMS Filenames and extensions
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
06-08-2005 10:50 AM
06-08-2005 10:50 AM
character?
e.g. $ rename afile.txt afile
If so, please provide required syntax,
Thanks,
Angel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 11:22 AM
06-08-2005 11:22 AM
Re: VMS Filenames and extensions
--Travis Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 02:08 PM
06-08-2005 02:08 PM
Re: VMS Filenames and extensions
would get you a file called afile. which is
as close as you get on ODS2.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 03:20 PM
06-08-2005 03:20 PM
Re: VMS Filenames and extensions
You can call it anything, but it will have a period.
for example. rename Sam.txt sam
you'll have sam.
There's no getting rid of the period.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 03:47 PM
06-08-2005 03:47 PM
Re: VMS Filenames and extensions
the syntax of a file in VMS describes it (ignoring dir spec for this purpose) as
Where
However, the dot ( . ) and semicolon ( ; ) are just part of the formal syntax.
No way to get around that.
Various commands have various ways of completing any parts of the file syntax on a command line, but you WILL always deal with a complete syntax, which the OS will always use in any action, response, or display.
It _IS_ possible for name and/or version to be null-strings, but the version will ALWAYS be an integer between 1 and 32767
But,
WHAT is the background of your question? WHAT are you trying to achieve?
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 06:57 PM
06-08-2005 06:57 PM
Re: VMS Filenames and extensions
welcome to vms forum :-)
you received full answers to your question. Just for curiosity, why you need blinding dot char?
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 10:13 PM
06-08-2005 10:13 PM
Solution$ DEFINE afile afile.txt
now you have the name "afile" which will refer to your file. It's not persistent, and might not scale very well, but that wasn't specified in the problem description :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 11:25 PM
06-08-2005 11:25 PM
Re: VMS Filenames and extensions
$ t f !sure that's overdone
can bé equivalent to
$ type/page=save=5 dev:[dir1.dir2.dir3.dir4]filnam.ext;v
And there are some DCL commands which handle a special extension as default.
So e.g. TYPE AFILE acts as TYPE AFILE.LIS and @AFILE acts as @AFILE.COM
Cheer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 11:33 PM
06-08-2005 11:33 PM
Re: VMS Filenames and extensions
My compliments, you have out-thought many of us :)
I am cursing myself for not having thought on the same lines as you.
At least on a daily basis i used the "define" command 10-15 times :)
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:30 AM
06-09-2005 05:30 AM
Re: VMS Filenames and extensions
So the original goal (using OSD-5) is to transfer the file to a NFS mounted device
shared by UNIX which does not include the
dot using rename command to eliminate it. (the dot)
I'm not sure if the logical assignment will work, but I give it a shot.
Any other great ideas/methods for ODS-5 mounted volumes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 08:12 AM
06-09-2005 08:12 AM
Re: VMS Filenames and extensions
>>
So the original goal (using OSD-5) is to transfer the file to a NFS mounted device
shared by UNIX ...
<<
Have you tried this yet? Are you sure it's a problem? The VMS side will always show a .;n but I think the NFS server understands that *nix doesn't want those characters. Don't have a *nix NFS mount handy to test with, but my recall is that this is the case.
Just like when you create a file named afile from the *nix side, if you $dir it from VMS you'll see afile.;1
-Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 03:43 PM
06-09-2005 03:43 PM
Re: VMS Filenames and extensions
Doug did a pretty nice explanation.
While I can not give a definite answer concerning Linux (by lack of experience), I _CAN_ give our Tru64 experience.
It seemed quite fancy at first, but turned out to work rather consistent.
We were even able to have full version support when viewed from VMS, and from Tru64, the files were reported with "ls".
But functionally, only the highest version was addressable, without the semicolon!
(those were mainly .HTML files, and Tru64 Apache just accepted the highest version. In fact, better than VMS Apache 2.0 did later on).
VMS behaved like VMS, and Tru64 like Tru64.
I would suspect (and hope for your sake) that Linux behaves similar.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 06:54 PM
06-09-2005 06:54 PM
Re: VMS Filenames and extensions
I daily transfer from vms to windows and viceversa. When I want a file without dot I don't use extension; on vms side I see "file." while on windows side I see "file". I guess it's the same for unix transfer.
Logical name can't help you because it's a feature of running shell in vms environment and it's no part of filename.
Have a nice day!
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 07:18 PM
06-09-2005 07:18 PM
Re: VMS Filenames and extensions
I try a little test with VMS 7.3-2 TCPIP V5.4 - ECO 2 and RedHat Linux 8.0.
$ CREATE DNFS100:[000000]a
$ DIR DNFS100:[000000]a
Directory DNFS100:[000000]
A.;1
Total of 1 file.
On Linux (/home/bojan/nfsexp/ is the exported directory):
ls /home/bojan/nfsexp/a*
a
So there is no . (dot) or ; (semicolon) in the linux file name.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 07:27 PM
06-09-2005 07:27 PM
Re: VMS Filenames and extensions
I just see another thing in yours original post:
$ rename afile.txt afile
will produce afile.txt! (no changes to the file type) the right command is:
$ rename afile.txt afile.
or
$ rename afile.txt afile.;
which will produce afile.;n (where n is the version). This file is seen from the unix system as afile without dots and semicolons.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 09:35 PM
06-09-2005 09:35 PM
Re: VMS Filenames and extensions
I had checked same test as Borjan using VMS 7.3.2 and HP-UX 11v2 and I had the same reponse
dot dissapears on HP-UX but when I intend repeat
CREATEcommand from VMS, appears on VMS 2 files - a.;2 and a.;1 - but from UNIX there are 3 files - a, a;2 and a;1 -
Saludos.
Daniel.