Operating System - OpenVMS
1825703 Members
3264 Online
109686 Solutions
New Discussion

Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk

 
SOLVED
Go to solution
Kenneth Toler
Frequent Advisor

Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk

Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk?

When the filenames on the Zip disk are different cases "File.Txt", how do I change the case to "FILE.TXT" (all uppercase)?

I am using WINFX to read the PC formatted Zip disk from an OpenVMS Alpha.

Is there a way to change to ALL CAPS before the files are written to the OpenVMS platform?

Or, is there a way to cahnge the case to ALL CAPS AFTER the files are written to the Alpha?
3 REPLIES 3
Hein van den Heuvel
Honored Contributor
Solution

Re: Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk


Hmm, OpenVMS untill recently only dealt with uppercase, case insensitive names. This was on the ODS2 filesystem. With ODS5 came case preservation and selectable sensitivity.

You can always simply rename the files to uppercase with a DCL script or other tool. Something like (untested):

$loop:
$ file = f$search("*.*")
$ if file.eqs."" then exit
$ rename 'file 'f$edit(file,"UPCASE")
$ goto loop


fwiw,
Hein.


Peter Quodling
Trusted Contributor

Re: Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk

As always, the underlying question is, why do you want it back into uppercase... As hein suggested, ODS5 works just fine. Unless you are working with an Old, pre ODS5 version of VMS, or have an application dependency, are just a neatness freak, and don't liek directories that look like Eunuchs (Unix) Systems.

q
Leave the Money on the Fridge.
Ian Miller.
Honored Contributor

Re: Is there a way to force filename from lowercase to uppercase for a PC formatted Zip disk

On a ODS2 disk on VMS (which is what you have unless you asked for ODS5) then all filenames are in uppercase and VMS does not care about case. So when you copy the file from the zip disk to the VMS disk the result will be uppercase. If you have an ODS5 disk then the filename will appear in mixed case but how sensitive VMS is to the case depends on the settings of your process. By default case is still ignored.
____________________
Purely Personal Opinion