Operating System - OpenVMS
1752689 Members
5417 Online
108789 Solutions
New Discussion

Re: Renaming files in lower case

 
SOLVED
Go to solution
smsc_1
Regular Advisor

Renaming files in lower case

 

Dear community,

I have a script in queue that send log files from OpenVMS 8.3 to Linux Red hat server.

On Red Hat there is an application that expect the filename as XXXXXXX.DAT.gz (.gz must be in lower case).

 

This is part of the transfer script:

$ FTP 10.99.10.10 /USERNAME="user" /PASSWORD="password"
SET TYPE BINARY
PUT   LOG_FILE.8755-GZ;1   LOG_FILE.8755.FTP
RENAME   LOG_FILE.8755.FTP   LOG_FILE.8755.DAT.gz
EXIT

 

The problem is OpenVMS always rename the file in UPPER case, so I have always this result:

LOG_FILE.8755.DAT.GZ

Linux application behaviour cannot be changes since it's hard coded, so, is there a way to rename the .gz extension in lower case? Or at least all the file name in lower case?

 

Thanks

Lucas

 

./ Lucas
5 REPLIES 5
Andy Bustamante
Honored Contributor
Solution

Re: Renaming files in lower case

 

I suggest you try either:

  RENAME   LOG_FILE.8755.FTP   "LOG_FILE.8755.DAT.gz"

 

or prior to execution of the FTP command

  $ set proc/parse=extended 

 

 

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Steven Schweda
Honored Contributor

Re: Renaming files in lower case

 
Steven Schweda
Honored Contributor

Re: Renaming files in lower case

 
smsc_1
Regular Advisor

Re: Renaming files in lower case

 

Thanks Andy,

RENAME   LOG_FILE.8755.FTP   "LOG_FILE.8755.DAT.gz"  (with quotas) works perfect! ;)

Instead, this "$ set proc/parse=extended " does not work for me!

 

Steven, I have to rename first in .FTP because I have routine that check if the files are corrently trasferring. So if the file remains .FTP means something goes wrong during transfer.

 

./ Lucas
The Brit
Honored Contributor

Re: Renaming files in lower case

Thanks Steven.

 

Your response to the above question pointed me to the solution to a related problem of my own.

 

Dave.