If the file names are uppercased on z/OS, Linux will retain that.
You'll probably have to run a script to lower-case the names (if
desired).

Frank M. Ramaekers Jr.
Systems Programmer                   MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co.   Phone: (254)761-6649
1200 Wooded Acres Dr.                Fax:   (254)741-5777
Waco, Texas  76710
        

 


-----Original Message-----
From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of
McKown, John
Sent: Monday, December 21, 2009 3:14 PM
To: LINUX-390@VM.MARIST.EDU
Subject: z/OS ftp server / Linux client - lowercasing Linux file name on
MGET.

I crossposted this to the IBM TCP forum and Linux forum because I'm not
sure where the answer might be.

I am logged onto Linux. I want to download a number of z/OS datasets. I
do the following:

cd 'HLQ'
prompt
mget START.*

Transcript:

331 Send password please.
Password:
230-You have successfully logged on to the DEV1.UICNRH.DOM ftp server.
230 TSH009 is logged on.  Working directory is "TSH009.".
Remote system type is MVS.
ftp> prompt
Interactive mode off.
ftp> mget alltapes.*
local: ALLTAPES.CA1 remote: ALLTAPES.CA1
227 Entering Passive Mode (10,170,30,20,25,73)
125 Sending data set TSH009.ALLTAPES.CA1 FIXrecfm 133
250 Transfer completed successfully.
20535566 bytes received in 3.19 secs (6444.13 Kbytes/sec)
local: ALLTAPES.OAM remote: ALLTAPES.OAM
227 Entering Passive Mode (10,170,30,20,25,74)
125 Sending data set TSH009.ALLTAPES.OAM
250 Transfer completed successfully.
63612070 bytes received in 7.48 secs (8500.21 Kbytes/sec)
ftp>

When the mget ends, the files on Linux are all upper case. I would
prefer them to be lower case. I get lower case, if I do:

ftp> get alltapes.oam
local: alltapes.oam remote: alltapes.oam
227 Entering Passive Mode (10,170,30,20,25,75)
125 Sending data set TSH009.ALLTAPES.OAM
250 Transfer completed successfully.
63612070 bytes received in 7.96 secs (7993.69 Kbytes/sec)
ftp> get alltapes.ca1
local: alltapes.ca1 remote: alltapes.ca1
227 Entering Passive Mode (10,170,30,20,25,76)
125 Sending data set TSH009.ALLTAPES.CA1 FIXrecfm 133
250 Transfer completed successfully.
20535566 bytes received in 3.35 secs (6133.27 Kbytes/sec)
ftp>

It appears that the upper case is because the NLST issued in the "mget"
case returns the upper case name, as I guess it should. In the case
which works as I want, I get lower case because the z/OS ftp server
upper cases the legacy name, but the ftp client on Linux remembers the
lower case name.

Any ideas of an easy way to have lower case? Yes, I know how to lower
case the Linux file names after doing the ftp. I'm just lazy.

for i in [A-Z]*;do mv -n $i $(echo $i|tr '[A-Z]' '[a-z]');done

I use the -n so that I don't accidently overwrite an existing file.

John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the
original message. HealthMarkets(r) is the brand name for products
underwritten and issued by the insurance subsidiaries of HealthMarkets,
Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life
Insurance Company of TennesseeSM and The MEGA Life and Health Insurance
Company.SM


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

_____________________________________________________
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
privacy...@ailife.com.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to