Re: Filename in lowercase
I'm afraid so, too. The only alternatat I think you are out of luck. I'm afraid so, too. The only alternatative I found is what Don suggested in his later post. Instead of doing with Rexx, I simply passed the output of a LISTC to DFSORT, and let him generate a 'put a.b.c.fred' for every single dataset found under A.B.C. Thanks for your and Don's answer. Walter Marguccio z/OS Systems Programmer BELENUS LOB Informatic GmbH Munich - Germany -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Filename in lowercase
I RTFM and searched the archives but found no hints. The Hello list, I RTFM and searched the archives but found no hints. The following SYSIN for a batch ftp on z/OS does work: //INPUT DD * myremotehost mypassword lcd 'A.B.C' cd /remote/dir mput * quit However, the files on the remote host (a Linux box) are named A.B.C.FRED, A.B.C.WILMA, etc. (in uppercase). Is there a way to keep the simple 'mput *' and tell ftp to allocate filenames in lowercase on the Linux box a.b.c.fred, a.b.c.wilma) ? TIA Walter Marguccio z/OS Systems Programmer BELENUS LOB Informatic GmbH Munich - Germany -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Filename in lowercase
I think you are out of luck. My reasoning is that there is no such facility because it would be too easy to make a mistake. Not with legacy datasets, but with UNIX files. In UNIX, it is perfectly legitimate to have different files named: bill, Bill, biLL, ... It would be confusing and perhaps foolish, but legal. So having a autolowercase could result in problems. OK, I'm stretching for an answer. Most likely it was never even though of. Which is somewhat strange given how a normal get works. John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Walter Marguccio Sent: Tuesday, November 23, 2010 8:09 AM To: IBM-MAIN@bama.ua.edu Subject: Filename in lowercase I RTFM and searched the archives but found no hints. The Hello list, I RTFM and searched the archives but found no hints. The following SYSIN for a batch ftp on z/OS does work: //INPUT DD * myremotehost mypassword lcd 'A.B.C' cd /remote/dir mput * quit However, the files on the remote host (a Linux box) are named A.B.C.FRED, A.B.C.WILMA, etc. (in uppercase). Is there a way to keep the simple 'mput *' and tell ftp to allocate filenames in lowercase on the Linux box a.b.c.fred, a.b.c.wilma) ? TIA Walter Marguccio z/OS Systems Programmer BELENUS LOB Informatic GmbH Munich - Germany -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Filename in lowercase
If you script your ftp with REXX you can use the following to convert a filename from uppercase to lowercase: UPPER = 'FILENAME' LOWER = BITXOR(UPPER,,'40'X) PUT UPPER LOWER That would result in the command: PUT FILENAME filename You could then loop through all of the members of your pds and send them individually. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov I am armed, And dangers are to me indifferent. -- Shakespeare, Julius Caesar -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Filename in lowercase
Hum, I'd use TRANSLATE instead of BITXOR. There might be some digits or other non-upper case alphabetic characters in a valid node. Not to mention any periods if there are multiple nodes below the given one. John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Grinsell, Don Sent: Tuesday, November 23, 2010 12:31 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Filename in lowercase If you script your ftp with REXX you can use the following to convert a filename from uppercase to lowercase: UPPER = 'FILENAME' LOWER = BITXOR(UPPER,,'40'X) PUT UPPER LOWER That would result in the command: PUT FILENAME filename You could then loop through all of the members of your pds and send them individually. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov I am armed, And dangers are to me indifferent. -- Shakespeare, Julius Caesar -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Filename in lowercase
I knew it was too easy! XOR seemed quick and easy, but TRANSLATE will definitely cover a broader set of circumstances. LOWER = TRANSLATE(UPPER,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ') And we're off to the races. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov You can only find truth with logic if you have already found truth without it. -- Gilbert K. Chesterton -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html