Re: FTP to Unix directory with spaces
Howard, I can't believe we are seeing the entire log here of what is going on. Where are the commands and the results of the commands that Dennis suggested you issue? Run those commands, one at a time or script them in your batch job and capture the results. Post the entire log here so we can see what's going on. If what we are seeing is all you are getting back from the server then there are some serious problems here. Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 2:46 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 11:34:10 -0700, dennis.ro...@lmco.com (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. Except I have that access using Ultra-Edit, and I cut and pasted the directory from ultra-edit's FTP browser. But here it goes. 12:45:09 Enter PASSWORD ..: ### 12:45:09 230 Login successful. 12:45:09 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 12:45:09 250 Directory successfully changed. 12:45:10 FTP2: dir 12:45:10 150 Here comes the directory listing. 12:45:10 -Dataset opened; data connection starting. 12:45:10 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:10 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 Dataset attributes: 12:45:10 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS936 Unit=3390 12:45:10 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:10 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:10 226 Directory send OK. 12:45:10 -Transfer complete. 12:45:11 3673 bytes received in 0.03 seconds (122433 bytes/s) 12:45:11 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 User=D44201 12:45:11 Data bytes written: 3577. 12:45:11 226 Disk tracks written: 1. 12:45:12 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 12:45:12 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder 12:45:12 -rw-r--r--1 6002910446 Jul 28 18:12 address_incr.dat I tried it again, with a more limited dir - which didn't show Test Folder for some reason (it is visible above): 12:45:42 FTP2: dir t* 12:45:43 150 Here comes the directory listing. 12:45:43 -Dataset opened; data connection starting. 12:45:43 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:43 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 Dataset attributes: 12:45:43 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS618 Unit=3390 12:45:43 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:43 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:43 226 Directory send OK. 12:45:43 -Transfer complete. 152 bytes received in 0.03 seconds (5066 bytes/s) 12:45:44 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 User=D44201 12:45:44 Data bytes written: 148. 12:45:44 226 Disk tracks written: 1. 12:45:44 -rw-r--r--1 60029104 5976435 Jul 23 15:07 test_scores-7-23.dat 12:45:44 -rw-r--r--1 60029104 305884107 Jul 25 03:51 test_scores.dat 12:45:45 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 12:45:45 550 Failed to change directory. 12:45:45 FTP2: END 12:45:45 221 Goodbye. 12:45:45 221 Session terminated 12:45:45 T01F2030I FTP2 returns CC=8 ... -- 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: FTP to Unix directory with spaces
again I suggest using the -v and or the -d flags to acquire more debugging information. Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Roach, Dennis (N-GHG) Sent: Tuesday, July 28, 2009 2:59 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces Do you have anyone that can do an IP trace on the z box? In particular, the failing transfer vs. the start of the good one. You said that they use spaces in the names for other systems. Can you determine what the receiving systems are? This could be one of those things where both ends do something weird and the end result is failure. Dennis Roach GHG Corporation Lockheed Martin Mission Services Facilities Design and Operations Contr -- 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: FTP to Unix directory with spaces
What do we know? CA's FTP2 fails with blanks in the directory name to this system. CA's FTP2 works with blanks in the directory name to other systems. Another FTP client works with blanks in the directory name to this system. This says that the directory and access structure is valid for this transfer. Suspect: One end or the other is issuing a command, such as SYST, that is responding with something that is not liked or not valid, causing invalid options to be assumed on one end. Validation: IP trace of success and failure Dennis Roach GHG Corporation Lockheed Martin Mission Services Facilities Design and Operations Contract NASA/JSC Address: 2100 Space Park Drive LM-15-4BH Houston, Texas 77058 Mail: P.O. Box 58487 Mail Code H4C Houston, Texas 77258 Phone: Voice: (281)336-5027 Cell: (713)591-1059 Fax:(281)336-5410 E-Mail: dennis.ro...@lmco.com All opinions expressed by me are mine and may not agree with my employer or any person, company, or thing, living or dead, on or near this or any other planet, moon, asteroid, or other spatial object, natural or manufactured, since the beginning of time. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Klein, Kenneth Sent: Wednesday, July 29, 2009 6:18 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces Howard, I can't believe we are seeing the entire log here of what is going on. Where are the commands and the results of the commands that Dennis suggested you issue? Run those commands, one at a time or script them in your batch job and capture the results. Post the entire log here so we can see what's going on. If what we are seeing is all you are getting back from the server then there are some serious problems here. Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 2:46 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 11:34:10 -0700, dennis.ro...@lmco.com (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. Except I have that access using Ultra-Edit, and I cut and pasted the directory from ultra-edit's FTP browser. But here it goes. 12:45:09 Enter PASSWORD ..: ### 12:45:09 230 Login successful. 12:45:09 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 12:45:09 250 Directory successfully changed. 12:45:10 FTP2: dir 12:45:10 150 Here comes the directory listing. 12:45:10 -Dataset opened; data connection starting. 12:45:10 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:10 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 Dataset attributes: 12:45:10 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS936 Unit=3390 12:45:10 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:10 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:10 226 Directory send OK. 12:45:10 -Transfer complete. 12:45:11 3673 bytes received in 0.03 seconds (122433 bytes/s) 12:45:11 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 User=D44201 12:45:11 Data bytes written: 3577. 12:45:11 226 Disk tracks written: 1. 12:45:12 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 12:45:12 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder 12:45:12 -rw-r--r--1 6002910446 Jul 28 18:12 address_incr.dat I tried it again, with a more limited dir - which didn't show Test Folder for some reason (it is visible above): 12:45:42 FTP2: dir t* 12:45:43 150 Here comes the directory listing. 12:45:43 -Dataset opened; data connection starting. 12:45:43 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:43 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 Dataset attributes: 12:45:43 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS618 Unit=3390 12:45:43 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:43 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:43 226 Directory send OK. 12:45:43 -Transfer complete. 152 bytes received in 0.03 seconds (5066 bytes/s) 12:45:44 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 User
Re: FTP to Unix directory with spaces
On 29 Jul 2009 04:23:47 -0700, kenneth.kl...@kyfb.com (Klein, Kenneth) wrote: Howard, I can't believe we are seeing the entire log here of what is going on. Where are the commands and the results of the commands that Dennis suggested you issue? Run those commands, one at a time or script them in your batch job and capture the results. Post the entire log here so we can see what's going on. If what we are seeing is all you are getting back from the server then there are some serious problems here. I need to do find someone who understands how to do what Dennis suggested. We are in a bit of a crunch mode right now, so I'm moving files by hand until I can find someone who has time to work with me. -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 13:37:58 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command This is likely a defect in the CA FTP client. Deal with CA. Perhaps they'll create a PTF that can be APPLYed without BYPASS. We have had other problems with CA's FTP client. -- 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: FTP to Unix directory with spaces
Howard, Any chance your shop is licensed for IBM's stack as well as CA's? If so, you should be able to run IBM's ftp client without running their stack. It might be worth looking into. On my system, IBM's TCPIP is licensed via the IFAPRD00 member in CPAC.PARMLIB. Do a find on TCP. -- 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Wednesday, July 29, 2009 8:37 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 13:37:58 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command This is likely a defect in the CA FTP client. Deal with CA. Perhaps they'll create a PTF that can be APPLYed without BYPASS. We have had other problems with CA's FTP client. -- 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: FTP to Unix directory with spaces
On Wed, 29 Jul 2009 07:31:18 -0600, Roach, Dennis (N-GHG) wrote: What do we know? CA's FTP2 fails with blanks in the directory name to this system. CA's FTP2 works with blanks in the directory name to other systems. I have reviewed all the OP's updates in this thread, and I do not see that. Can you cite timestamp and/or URL? Another FTP client works with blanks in the directory name to this system. This says that the directory and access structure is valid for this transfer. Suspect: One end or the other is issuing a command, such as SYST, that is responding with something that is not liked or not valid, causing invalid options to be assumed on one end. Validation: IP trace of success and failure -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 2:46 PM On 28 Jul 2009 11:34:10 -0700, (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. ... 12:45:45 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 12:45:45 550 Failed to change directory. 12:45:45 FTP2: END 12:45:45 -- gil -- 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: FTP to Unix directory with spaces
On Wed, 29 Jul 2009 07:36:07 -0600, Howard Brazee wrote: I need to do find someone who understands how to do what Dennis suggested. We are in a bit of a crunch mode right now, so I'm moving files by hand until I can find someone who has time to work with me. I believe what Dennis asked for, and I didn't see was (embellished): On 28 Jul 2009 11:34:10 -0700, dennis.ro...@lmco.com wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir cd Test Folder dir -- gil -- 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: FTP to Unix directory with spaces
On 29 Jul 2009 07:07:18 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir cd Test Folder dir SOC9 again: 08:28:00 -Logged in - User=D44201 Working directory D44201. 08:28:00 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 08:28:00 (C) Copyright 1987-2003 Computer Associates International, Inc. 08:28:00 Component: Client FTP, A6007420 UFTP2 08:28:00 Enter command or '?' 08:28:00 FTP2: OPEN cs-dev-app-1.cusys.edu 08:28:00 220 Welcome to the new SIS FTP Service. All activities can and will be logged. 08:28:00 Enter name (CS-DEV-APP-1.CUSYS.EDU:d44201): cs90ftp 08:28:00 Enter PASSWORD ..: ### 08:28:00 230 Login successful. 08:28:00 FTP2: cd /ps 08:28:00 250 Directory successfully changed. 08:28:00 FTP2: cd /ps/cs90ftp 08:28:00 250 Directory successfully changed. 08:28:00 FTP2: cd /ps/cs90ftp/conversion_files 08:28:00 250 Directory successfully changed. 08:28:00 FTP2: cd /ps/cs90ftp/conversion_files/CC 08:28:00 250 Directory successfully changed. 08:28:00 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 08:28:00 250 Directory successfully changed. 08:28:00 FTP2: dir 08:28:01 150 Here comes the directory listing. 08:28:01 -Dataset opened; data connection starting. 08:28:01 Data transfer Type is ASCII. Structure is File. Mode is Stream. 08:28:01 Dataset name: D44201.FTP.TMP.T2800585.P9992.S9992 Dataset attributes: 08:28:01 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS936 Unit=3390 08:28:01 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 08:28:01 150 Network data which exceeds LRECL will be wrapped to the next record. 08:28:01 226 Directory send OK. 08:28:01 -Transfer complete. 08:28:01 3843 bytes received in 0.03 seconds (128100 bytes/s) 08:28:01 Dataset name: D44201.FTP.TMP.T2800585.P9992.S9992 User=D44201 08:28:01 Data bytes written: 3743. 08:28:02 226 Disk tracks written: 1. 08:28:02 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 08:28:02 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder ... 08:28:02 -rw-r--r--1 60029104 2144642 Jul 24 19:16 visapmt.dat 08:28:03 FTP2: cd Test Folder 08:28:03 550 Failed to change directory. 08:28:03 FTP2: dir 08:28:03 150 Here comes the directory listing. 08:28:03 -Dataset opened; data connection starting. 08:28:03 Data transfer Type is ASCII. Structure is File. Mode is Stream. 08:28:03 Dataset name: D44201.FTP.TMP.T2803453.P0585.S9992 Dataset attributes: 08:28:04 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS607 Unit=3390 08:28:04 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 08:28:04 150 Network data which exceeds LRECL will be wrapped to the next record. 08:28:04 226 Directory send OK. 08:28:04 -Transfer complete. 08:28:04 3843 bytes received in 0.03 seconds (128100 bytes/s) 08:28:04 Dataset name: D44201.FTP.TMP.T2803453.P0585.S9992 User=D44201 08:28:04 Data bytes written: 3743. 08:28:04 226 Disk tracks written: 1. 08:28:05 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 08:28:05 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder ... 08:28:05 -rw-r--r--1 60029104 2144642 Jul 24 19:16 visapmt.dat 08:28:05 FTP2: END 08:28:06 221 Goodbye. 08:28:06 221 Session terminated 08:28:06 T01F2030I FTP2 returns CC=8 -- 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: FTP to Unix directory with spaces
I was basing the statement that CA's ftp2 works to other systems with blanks on - In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. Howard - can you set the record straight? I may be misreading the above. Dennis Roach GHG Corporation Lockheed Martin Mission Services Facilities Design and Operations Contract NASA/JSC Address: 2100 Space Park Drive LM-15-4BH Houston, Texas 77058 Mail: P.O. Box 58487 Mail Code H4C Houston, Texas 77258 Phone: Voice: (281)336-5027 Cell: (713)591-1059 Fax:(281)336-5410 E-Mail: dennis.ro...@lmco.com All opinions expressed by me are mine and may not agree with my employer or any person, company, or thing, living or dead, on or near this or any other planet, moon, asteroid, or other spatial object, natural or manufactured, since the beginning of time. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Wednesday, July 29, 2009 8:53 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On Wed, 29 Jul 2009 07:31:18 -0600, Roach, Dennis (N-GHG) wrote: What do we know? CA's FTP2 fails with blanks in the directory name to this system. CA's FTP2 works with blanks in the directory name to other systems. I have reviewed all the OP's updates in this thread, and I do not see that. Can you cite timestamp and/or URL? Another FTP client works with blanks in the directory name to this system. This says that the directory and access structure is valid for this transfer. Suspect: One end or the other is issuing a command, such as SYST, that is responding with something that is not liked or not valid, causing invalid options to be assumed on one end. Validation: IP trace of success and failure -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 2:46 PM On 28 Jul 2009 11:34:10 -0700, (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. ... 12:45:45 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 12:45:45 550 Failed to change directory. 12:45:45 FTP2: END 12:45:45 -- gil -- 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: FTP to Unix directory with spaces
On Wed, 29 Jul 2009 08:27:42 -0600, Howard Brazee wrote: cd /ps/cs90ftp/conversion_files/CC/extract dir cd Test Folder dir SOC9 again: ITYM S0C9. And I don't see either. ... 08:28:00 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 08:28:00 250 Directory successfully changed. So far, so good. There are no problems earlier in the path. (barring lack of search permission on extract. To be very sure, you could try: cd /ps/cs90ftp/conversion_files/CC/. dir 08:28:00 FTP2: dir ... 08:28:01 226 Directory send OK. 08:28:01 -Transfer complete. 08:28:01 3843 bytes received in 0.03 seconds (128100 bytes/s) 08:28:01 Dataset name: D44201.FTP.TMP.T2800585.P9992.S9992 User=D44201 08:28:01 Data bytes written: 3743. 08:28:02 226 Disk tracks written: 1. 08:28:02 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 08:28:02 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder ... And permissions on Test Folder look good. 08:28:03 FTP2: cd Test Folder 08:28:03 550 Failed to change directory. And here it's broken. Was Dennis correct in his statement that FTP2 client correctly handles directories with blanks in their names on other servers? Moved the data by hand? Retyped them with an editor? -- gil -- 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: FTP to Unix directory with spaces
We've narrowed the issue down to the syntax of the cd command. cd Test Folder 08:28:03 550 Failed to change directory. If we could run ftp with the -v and -d flags we probably would get an explanation. Otherwise we can research CA's requirements for this command. apparently CA wants single quotes or perhaps a pair of single quotes: ''Test Folder'' or maybe even 'Test Folder'. Have you tried using the escape character, the back slash: \ in front of the quote? Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Wednesday, July 29, 2009 10:28 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 29 Jul 2009 07:07:18 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir cd Test Folder dir SOC9 again: -- 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: FTP to Unix directory with spaces
On 29 Jul 2009 07:58:12 -0700, dennis.ro...@lmco.com (Roach, Dennis , N-GHG) wrote: I was basing the statement that CA's ftp2 works to other systems with blanks on - In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. Howard - can you set the record straight? I may be misreading the above. I'm not sure how that message might be ambiguous.But if I can't solve the problem on the mainframe side, it will be easier to get a Unix guy to write a script to move the file than it would be to get sufficient users to change their directory naming style. -- 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: FTP to Unix directory with spaces
On Wed, 29 Jul 2009 11:03:18 -0400, Klein, Kenneth wrote: We've narrowed the issue down to the syntax of the cd command. cd Test Folder 08:28:03 550 Failed to change directory. If we could run ftp with the -v and -d flags we probably would get an explanation. Otherwise we can research CA's requirements for this command. apparently CA wants single quotes or perhaps a pair of single quotes: ''Test Folder'' or maybe even 'Test Folder'. Have you tried using the escape character, the back slash: \ in front of the quote? Isn't it time to abandon the shotgun approach and: o RTFM o Open an issue with CA? -- gil -- 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: FTP to Unix directory with spaces
On 29 Jul 2009 08:03:21 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: 08:28:03 FTP2: cd Test Folder 08:28:03 550 Failed to change directory. And here it's broken. Was Dennis correct in his statement that FTP2 client correctly handles directories with blanks in their names on other servers? He, or someone tested it elsewhere. Moved the data by hand? Retyped them with an editor? I can use Ultra-Edit or SSHClient to FTP it from the mainframe, then FTP it to the Unix machine. Or I can FTP it from the mainframe to a directory on the mainframe that does not contain spaces, then move it from there. I just can't make CA's mainframe FTP go directly to a directory with spaces in it on my Red Hat Unix machine. -- 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: FTP to Unix directory with spaces
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Wednesday, July 29, 2009 10:45 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On Wed, 29 Jul 2009 11:03:18 -0400, Klein, Kenneth wrote: We've narrowed the issue down to the syntax of the cd command. cd Test Folder 08:28:03 550 Failed to change directory. If we could run ftp with the -v and -d flags we probably would get an explanation. Otherwise we can research CA's requirements for this command. apparently CA wants single quotes or perhaps a pair of single quotes: ''Test Folder'' or maybe even 'Test Folder'. Have you tried using the escape character, the back slash: \ in front of the quote? Isn't it time to abandon the shotgun approach and: o RTFM I was able to. The documentation on the CD command in ftp was that the syntax of the path portion was dependant on the remote ftp server requirements. Which means, to me, that cd Test\ Folder or cd Test Folder should work. It does on my Redhat Fedora 11 system (Intel). o Open an issue with CA? Better hope it is a known problem. I just did a search on CA's Knowledge Base. TCPAccess is functionally stabalized at the 6.0SP05 release. -- gil -- 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 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: FTP to Unix directory with spaces
On Wed, 29 Jul 2009 11:21:02 -0500, McKown, John wrote: o RTFM I was able to. The documentation on the CD command in ftp was that the syntax of the path portion was dependant on the remote ftp server requirements. Which means, to me, that cd Test\ Folder or cd Test Folder should work. It does on my Redhat Fedora 11 system (Intel). My understanting of RFC 959 is that the client undoes escaping and the server deals with raw pathnames: string ::= char | charstring char ::= any of the 128 ASCII characters except CR and LF pathname ::= string 5.3.1. FTP COMMANDS CWD SP pathname CRLF An example with an embedded double quote: MKD foobar 257 /usr/dm/foobar directory created CWD /usr/dm/foobar 200 directory changed to /usr/dm/foobar Did we ever see a verbose trace that showed the generated CWD command? -- gil -- 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: FTP to Unix directory with spaces
Have you tried single quotes? I don't have a RedHat server to try but here's an example talking to a Filezilla server... ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 (C) Copyright 1987-2003 Computer Associates International, Inc. Component: Client FTP, A6007420 UFTP2 Enter command or '?' FTP2: cd /br/mvstuff/z9 BC 501 Syntax error FTP2: cd '/br/mvstuff/z9 BC' 250 CWD successful. /br/mvstuff/z9 BC is current directory. FTP2: Bob Howard Brazee wrote: I'm trying to do a FTP with the following: cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat I try putting single and double spaces around the destination directory, but the IKJEFT01 gives me a SYSTEM COMPLETION CODE=0C9 REASON CODE=0009 when it tries, but fails to change the directory. How do I handle the Unix spaces in the directory name? -- 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: FTP to Unix directory with spaces
On 29 Jul 2009 12:36:08 -0700, deerh...@ix.netcom.com (Bob Rutledge) wrote: Have you tried single quotes? I don't have a RedHat server to try but here's an example talking to a Filezilla server... I thought I did, but: 13:52:49 FTP2: cd 'Test Folder' 13:52:49 250 Directory successfully changed. 13:52:49 FTP2: pwd 13:52:49 257 /ps/cs90ftp/conversion_files/CC/extract/Test Folder FTP works too. -- 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
FTP to Unix directory with spaces
I'm trying to do a FTP with the following: cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat I try putting single and double spaces around the destination directory, but the IKJEFT01 gives me a SYSTEM COMPLETION CODE=0C9 REASON CODE=0009 when it tries, but fails to change the directory. How do I handle the Unix spaces in the directory name? -- 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: FTP to Unix directory with spaces
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 9:48 AM To: IBM-MAIN@bama.ua.edu Subject: FTP to Unix directory with spaces I'm trying to do a FTP with the following: cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat I try putting single and double spaces around the destination directory, but the IKJEFT01 gives me a SYSTEM COMPLETION CODE=0C9 REASON CODE=0009 when it tries, but fails to change the directory. How do I handle the Unix spaces in the directory name? You likely need to escape the spaces with a reverse solidus (backslash to the unwashed masses grin). cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production -- 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 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: FTP to Unix directory with spaces
I assume you meant single and double quotes and I would think that should work. Maybe you could try wildcarding; /Files* or even /Files?for?Production and then sometimes you need to use an escape sequence, probably the back slash: \ , before the space. Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 10:48 AM To: IBM-MAIN@bama.ua.edu Subject: FTP to Unix directory with spaces I'm trying to do a FTP with the following: cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat I try putting single and double spaces around the destination directory, but the IKJEFT01 gives me a SYSTEM COMPLETION CODE=0C9 REASON CODE=0009 when it tries, but fails to change the directory. How do I handle the Unix spaces in the directory name? -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 07:56:55 -0700, jmck...@healthmarkets.com (McKown, John) wrote: How do I handle the Unix spaces in the directory name? You likely need to escape the spaces with a reverse solidus (backslash to the unwashed masses grin). cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:18 Enter PASSWORD ..: ### 09:12:19 230 Login successful. 09:12:19 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:19 550 Failed to change directory. 09:12:19 FTP2: put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat 09:12:19 -Dataset opened; data connection starting. One bad thing is that the files still get FTPd, the failure was only in the Change Directory. -- 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: FTP to Unix directory with spaces
On Tue, 28 Jul 2009 08:48:02 -0600, Howard Brazee wrote: I'm trying to do a FTP with the following: cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat I try putting single and double spaces around the destination directory, but the IKJEFT01 gives me a SYSTEM COMPLETION CODE=0C9 REASON CODE=0009 when it tries, but fails to change the directory. How do I handle the Unix spaces in the directory name? This is entirely client-dependent. What's your client? I can do the following: u...@mvs:128$ ftp IBM FTP CS V1R7 Connecting to: ... port: 21. 220 ... FTP server ready. Command: cd extract/Files for Production CWD extract/Files for Production 250 CWD command successful. Command: pwd PWD 257 [$HOME]/extract/Files for Production is current directory. Command: I suspect accessing a file with a newline in its name would be harder. -- gil -- 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: FTP to Unix directory with spaces
Ah. I did my test from a Linux system to a z/OS ftp server. I just did the following from a z/OS client to the ftp server on the same z/OS system: cd /home1000 EZA1701I CWD /home1000 250 HFS directory /home1000 is the current working directory EZA1460I Command: cd tsh009 EZA1701I CWD tsh009 250 HFS directory /home1000/tsh009 is the current working directory EZA1460I Command: mkdir a\ b EZA1542I Usage: MKDIR directory :(like local_mvs_directory: EZA1460I Command: pwd EZA1701I PWD 257 /home1000/tsh009 is the HFS working directory. EZA1460I Command: mkdir a b EZA1701I MKD a b 257 /home1000/tsh009/a b created. EZA1460I Command: cd a b EZA1701I CWD a b 250 HFS directory /home1000/tsh009/a b is the current working directory -- 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 10:10 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 07:56:55 -0700, jmck...@healthmarkets.com (McKown, John) wrote: How do I handle the Unix spaces in the directory name? You likely need to escape the spaces with a reverse solidus (backslash to the unwashed masses grin). cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:18 Enter PASSWORD ..: ### 09:12:19 230 Login successful. 09:12:19 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:19 550 Failed to change directory. 09:12:19 FTP2: put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat 09:12:19 -Dataset opened; data connection starting. One bad thing is that the files still get FTPd, the failure was only in the Change Directory. -- 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: FTP to Unix directory with spaces
Shortened example: EZA1460I Command: cd /home1000/tsh009/a b EZA1701I CWD /home1000/tsh009/a b 250 HFS directory /home1000/tsh009/a b is the current working directory EZA1460I Command: -- 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 10:10 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 07:56:55 -0700, jmck...@healthmarkets.com (McKown, John) wrote: How do I handle the Unix spaces in the directory name? You likely need to escape the spaces with a reverse solidus (backslash to the unwashed masses grin). cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:18 Enter PASSWORD ..: ### 09:12:19 230 Login successful. 09:12:19 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Files\ for\ Production 09:12:19 550 Failed to change directory. 09:12:19 FTP2: put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat 09:12:19 -Dataset opened; data connection starting. One bad thing is that the files still get FTPd, the failure was only in the Change Directory. -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 08:16:12 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: How do I handle the Unix spaces in the directory name? This is entirely client-dependent. What's your client? I don't know. -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 08:18:54 -0700, jmck...@healthmarkets.com (McKown, John) wrote: Shortened example: EZA1460I Command: cd /home1000/tsh009/a b EZA1701I CWD /home1000/tsh009/a b 250 HFS directory /home1000/tsh009/a b is the current working directory EZA1460I Command: The following is the directory I found using Ultra-Edit's FTP then cut and pasted: /ps/cs90ftp/conversion_files/CC/extract/Test Folder Here's the results of two tests with double quotes, I'm not seeing what I did differently - except we may have different FTP utilities. 09:33:41 230 Login successful. 09:33:41 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 09:33:41 550 Failed to change directory. 09:33:41 FTP2: put 'ums.d44201.jcl(testd)' test.dat 09:32:04 230 Login successful. 09:32:04 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test\ Folder 09:32:04 550 Failed to change directory. 09:32:04 FTP2: put 'ums.d44201.jcl(testd)' test.dat -- 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: FTP to Unix directory with spaces
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 10:35 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 08:18:54 -0700, jmck...@healthmarkets.com (McKown, John) wrote: Shortened example: EZA1460I Command: cd /home1000/tsh009/a b EZA1701I CWD /home1000/tsh009/a b 250 HFS directory /home1000/tsh009/a b is the current working directory EZA1460I Command: The following is the directory I found using Ultra-Edit's FTP then cut and pasted: /ps/cs90ftp/conversion_files/CC/extract/Test Folder Here's the results of two tests with double quotes, I'm not seeing what I did differently - except we may have different FTP utilities. 09:33:41 230 Login successful. 09:33:41 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 09:33:41 550 Failed to change directory. 09:33:41 FTP2: put 'ums.d44201.jcl(testd)' test.dat 09:32:04 230 Login successful. 09:32:04 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test\ Folder 09:32:04 550 Failed to change directory. 09:32:04 FTP2: put 'ums.d44201.jcl(testd)' test.dat Is this an interactive session (you're typing in the commands), or a batch session (some sort of script)? How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir In desperation, do you really needs the damn blanks? -- 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 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: FTP to Unix directory with spaces
Can you telnet to that address and see what kind of welcome page you see? Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 11:36 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 08:16:12 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: How do I handle the Unix spaces in the directory name? This is entirely client-dependent. What's your client? I don't know. -- 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: FTP to Unix directory with spaces
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 10:36 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 08:16:12 -0700, paulgboul...@aim.com (Paul Gilmartin) wrote: How do I handle the Unix spaces in the directory name? This is entirely client-dependent. What's your client? I don't know. Is this somebody else doing this? If it is you, how do you not know what your client is? What platform is this coming in off of? z/OS, z/VM, Linux, AIX, HPUX, Windows, BSD? If nothing else, can you post a complete transcript of the ftp session, starting with the ftp command? -- 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 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: FTP to Unix directory with spaces
On 28 Jul 2009 08:55:17 -0700, jmck...@healthmarkets.com (McKown, John) wrote: Is this an interactive session (you're typing in the commands), or a batch session (some sort of script)? It's a batch job run from JCL, using production procs. How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. -- 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: FTP to Unix directory with spaces
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 11:12 AM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 08:55:17 -0700, jmck...@healthmarkets.com (McKown, John) wrote: Is this an interactive session (you're typing in the commands), or a batch session (some sort of script)? It's a batch job run from JCL, using production procs. OK, so your client is the z/OS ftp client. I assume (ouch!) that you're running PGM=FTP. OOPS - looked at your original message and you're running ftp in TSO batch. Why? Example JCL without TSO in batch would be: //STEP1EXEC PGM=FTP, // REGION=0M, // PARM='(EXIT' //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUTDD * ipaddress-of-remote userid-to-use password-to-use cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat /* I wonder if TSO is stripping off the quote marks?!? How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. Can you post the entire output of your batch ftp job? It might help us discover what the server software is. And that might help with debugging. Munge as little of the output as possible (just things like IP address, userids and passwords, if possible). -- 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 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: FTP to Unix directory with spaces
On 28 Jul 2009 09:02:21 -0700, kenneth.kl...@kyfb.com (Klein, Kenneth) wrote: Can you telnet to that address and see what kind of welcome page you see? For some reason, my SSH keeps asking me for the password over and over again. I went to someone else's desk who seems to be set up identically to me, and he didn't get any welcome screen after logging on. We have a generic company welcome screen before, logging on, but it applies to both Linux and for Oracle machines, and I don't know which one this is. The mainframe only says FTP says: 10:06:10 220 Welcome to the new SIS FTP Service. All activities can and will be logged. So two of the 3 ways I know to get there (Mainframe FTP, Ultra-Edit FTP, SSH) work, and none of the three tell me much. -- 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: FTP to Unix directory with spaces
On Tue, 28 Jul 2009 10:12:00 -0600, Howard Brazee wrote: It's a batch job run from JCL, using production procs. The FTP command should supply the (EXIT (IIRC) option to cause the client to exit on a CD error before creating the file in the wrong directory. (Whatever is necessary to change a production proc.) How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. Or you could PUT via a fully-qualified pathname to avoid creating the errant file. (But would this run afoul of an absurd IBM limitation on command line length?) In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. Or create symbolic links with more agreeable names identifying the problem directories. -- gil -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 09:31:13 -0700, jmck...@healthmarkets.com (McKown, John) wrote: It's a batch job run from JCL, using production procs. OK, so your client is the z/OS ftp client. I assume (ouch!) that you're running PGM=FTP. OOPS - looked at your original message and you're running ftp in TSO batch. Why? Example JCL without TSO in batch would be: //STEP1EXEC PGM=FTP, // REGION=0M, // PARM='(EXIT' //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUTDD * ipaddress-of-remote userid-to-use password-to-use cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat /* Sorry, I submit a batch job from TSO, containing: //QA08F1 EXEC UEAA,(TRANSMIT TRANSACTIONS TO PS) // PASSWRD='UMSDEV.CONVSIS.LIB(OSIRIS)', //* LIBRARY AND MEMBER OF FILE CONTAINING PASSWORDS *** // FTPPARM='UMS.D44201.JCL(TESTD)' With: EDIT UMS.D44201.JCL(TESTD) - 01.16 Columns Command === Scro ** * Top of Data * ==MSG -CAUTION- Profile changed to CAPS OFF (from CAPS ON) because data ==MSG contains lower case characters. 01 cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 02 dir I wonder if TSO is stripping off the quote marks?!? How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. Can you post the entire output of your batch ftp job? It might help us discover what the server software is. And that might help with debugging. Munge as little of the output as possible (just things like IP address, userids and passwords, if possible). Is this enough? * TOP OF DATA ** READY FTP2 / FIOS ENTRY (A) D44201.FTP.TMP.T0610908.P0392.S0392 DELETED READY END BOTTOM OF DATA 10:06:10 -Logged in - User=D44201 Working directory D44201. 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command or '?' 10:06:10 FTP2: OPEN cs-dev-app-1.cusys.edu 10:06:10 220 Welcome to the new SIS FTP Service. All activities can and will be logged. 10:06:10 Enter name (CS-DEV-APP-1.CUSYS.EDU:d44201): cs90ftp 10:06:10 Enter PASSWORD ..: ### 10:06:10 230 Login successful. 10:06:10 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 10:06:10 550 Failed to change directory. 10:06:10 FTP2: dir 10:06:11 150 Here comes the directory listing. 10:06:11 -Dataset opened; data connection starting. 10:06:11 Data transfer Type is ASCII. Structure is File. Mode is Stream. 10:06:11 Dataset name: D44201.FTP.TMP.T0610908.P0392.S0392 Dataset attributes: 10:06:11 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS935 Unit=3390 10:06:11 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 10:06:11 150 Network data which exceeds LRECL will be wrapped to the next record. 10:06:11 226 Directory send OK. 10:06:13 -Transfer complete. 1734 bytes received in 0.03 seconds (57800 bytes/s) 10:06:13 Dataset name: D44201.FTP.TMP.T0610908.P0392.S0392 User=D44201 10:06:13 Data bytes written: 1686. 10:06:13 226 Disk tracks written: 1. 10:06:13 -rw-r--r--1 60029104 349853796 Apr 06 19:26 CLASStst4 10:06:13 -rw-r--r--1 60029104243952 Jun 11 14:25 address_incr.dat 10:06:13 -rw-r--r--1 60029104 0 Jul 08 12:32 address_mdm.dat 10:06:13 -rw-r--r--1 60029104 77214 Jun 11 14:25 citizen_incr.dat ... 10:06:13 -rw-r--r--1 6002910498 Jul 28 15:32 test.dat 10:06:14 FTP2: END 10:06:14 221 Goodbye. 10:06:14 221 Session terminated 10:06:14 T01F2030I FTP2 returns CC=8 -- 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
Re: FTP to Unix directory with spaces
Try putting a -v and/or -d on the ftp command. That should give you some more information. Ken Klein Sr. Systems Programmer Kentucky Farm Bureau Insurance - Louisville kenneth.kl...@kyfb.com 502-495-5000 x7011 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 1:48 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 09:31:13 -0700, jmck...@healthmarkets.com (McKown, John) wrote: It's a batch job run from JCL, using production procs. OK, so your client is the z/OS ftp client. I assume (ouch!) that you're running PGM=FTP. OOPS - looked at your original message and you're running ftp in TSO batch. Why? Example JCL without TSO in batch would be: //STEP1EXEC PGM=FTP, // REGION=0M, // PARM='(EXIT' //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUTDD * ipaddress-of-remote userid-to-use password-to-use cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat /* Sorry, I submit a batch job from TSO, containing: //QA08F1 EXEC UEAA,(TRANSMIT TRANSACTIONS TO PS) // PASSWRD='UMSDEV.CONVSIS.LIB(OSIRIS)', //* LIBRARY AND MEMBER OF FILE CONTAINING PASSWORDS *** // FTPPARM='UMS.D44201.JCL(TESTD)' With: EDIT UMS.D44201.JCL(TESTD) - 01.16 Columns Command === Scro ** * Top of Data * ==MSG -CAUTION- Profile changed to CAPS OFF (from CAPS ON) because data ==MSG contains lower case characters. 01 cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 02 dir I wonder if TSO is stripping off the quote marks?!? How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. Can you post the entire output of your batch ftp job? It might help us discover what the server software is. And that might help with debugging. Munge as little of the output as possible (just things like IP address, userids and passwords, if possible). Is this enough? * TOP OF DATA ** READY FTP2 / FIOS ENTRY (A) D44201.FTP.TMP.T0610908.P0392.S0392 DELETED READY END BOTTOM OF DATA 10:06:10 -Logged in - User=D44201 Working directory D44201. 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command or '?' 10:06:10 FTP2: OPEN cs-dev-app-1.cusys.edu 10:06:10 220 Welcome to the new SIS FTP Service. All activities can and will be logged. 10:06:10 Enter name (CS-DEV-APP-1.CUSYS.EDU:d44201): cs90ftp 10:06:10 Enter PASSWORD ..: ### 10:06:10 230 Login successful. 10:06:10 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 10:06:10 550 Failed to change directory. 10:06:10 FTP2: dir 10:06:11 150 Here comes the directory listing. 10:06:11 -Dataset opened; data connection starting. 10:06:11 Data transfer Type is ASCII. Structure is File. Mode is Stream. 10:06:11 Dataset name: D44201.FTP.TMP.T0610908.P0392.S0392 Dataset attributes: 10:06:11 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS935 Unit=3390 10:06:11 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 10:06:11 150 Network data which exceeds LRECL will be wrapped to the next record. 10:06:11 226 Directory send OK. 10:06:13 -Transfer complete. 1734 bytes received in 0.03 seconds (57800 bytes/s) 10:06:13 Dataset name: D44201.FTP.TMP.T0610908.P0392.S0392 User=D44201 10:06:13 Data bytes written: 1686. 10:06:13 226 Disk tracks written: 1. 10:06:13 -rw-r--r--1 60029104 349853796 Apr 06 19:26 CLASStst4 10:06:13 -rw-r--r--1 60029104243952 Jun 11 14:25 address_incr.dat 10:06:13 -rw-r--r--1 60029104 0 Jul 08 12:32 address_mdm.dat 10:06:13 -rw-r--r--1 60029104 77214 Jun 11 14:25 citizen_incr.dat ... 10
Re: FTP to Unix directory with spaces
On 28 Jul 2009 09:03:31 -0700, jmck...@healthmarkets.com (McKown, John) wrote: Is this somebody else doing this? If it is you, how do you not know what your client is? What platform is this coming in off of? z/OS, z/VM, Linux, AIX, HPUX, Windows, BSD? If nothing else, can you post a complete transcript of the ftp session, starting with the ftp command? Maybe I'm confused. I want to FTP a file from the mainframe to a Unix box. Our Unix boxes are either Solaris or Linux, but I don't know which one this is (and it would be useful to not have this break if the Unix version changes). The CD doesn't work when there's a space in the destination directory name, but otherwise the FTP works fine. -- 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: FTP to Unix directory with spaces
AH! You are running CA's TCPACCESS, not IBM's stack. That really does help. And, of course, I can't test anything because I don't run that software. Unfortunately, CA will not allow a non-customer to look at their product manuals. I may have an old CD around somewhere. We ran this software long ago. Can you try using the FTP3 client instead of FTP2? As I recall, it was closer to IBM's way of doing things. But I don't know if that is going to help or not. My mistake in asking for FTP as that is even more primitive than FTP2. Also, it might help if you make sure that the job does not have sequence numbers in columns 73-80. I don't know that for sure, but it couldn't hurt. -- 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 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 12:48 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 09:31:13 -0700, jmck...@healthmarkets.com (McKown, John) wrote: It's a batch job run from JCL, using production procs. OK, so your client is the z/OS ftp client. I assume (ouch!) that you're running PGM=FTP. OOPS - looked at your original message and you're running ftp in TSO batch. Why? Example JCL without TSO in batch would be: //STEP1EXEC PGM=FTP, // REGION=0M, // PARM='(EXIT' //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUTDD * ipaddress-of-remote userid-to-use password-to-use cd /ps/cs90ftp/conversion_files/CC/extract/Files for Production put 'UMSDEV.QA06.CCITFULL.D090714' citizen_D090714.dat /* Sorry, I submit a batch job from TSO, containing: //QA08F1 EXEC UEAA,(TRANSMIT TRANSACTIONS TO PS) // PASSWRD='UMSDEV.CONVSIS.LIB(OSIRIS)', //* LIBRARY AND MEMBER OF FILE CONTAINING PASSWORDS *** // FTPPARM='UMS.D44201.JCL(TESTD)' With: EDIT UMS.D44201.JCL(TESTD) - 01.16 Columns Command === Scro ** * Top of Data * ==MSG -CAUTION- Profile changed to CAPS OFF (from CAPS ON) because data ==MSG contains lower case characters. 01 cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 02 dir I wonder if TSO is stripping off the quote marks?!? How about trying something like: cd /ps/cs90ftp/convesion_files/CC/extract dir That's a better way to test, without creating the file in the wrong place. Good idea. In desperation, do you really needs the damn blanks? It's a political thing. I can argue with users to who are already using directories with blanks, or find a way to accommodate them. They have several directories so defined. I suppose we could have Unix scripts moving the files after I get them to a drop off directory, if we have a trigger paid for on the destination machine. Can you post the entire output of your batch ftp job? It might help us discover what the server software is. And that might help with debugging. Munge as little of the output as possible (just things like IP address, userids and passwords, if possible). Is this enough? * TOP OF DATA ** READY FTP2 / FIOS ENTRY (A) D44201.FTP.TMP.T0610908.P0392.S0392 DELETED READY END BOTTOM OF DATA 10:06:10 -Logged in - User=D44201 Working directory D44201. 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command or '?' 10:06:10 FTP2: OPEN cs-dev-app-1.cusys.edu 10:06:10 220 Welcome to the new SIS FTP Service. All activities can and will be logged. 10:06:10 Enter name (CS-DEV-APP-1.CUSYS.EDU:d44201): cs90ftp 10:06:10 Enter PASSWORD ..: ### 10:06:10 230
Re: FTP to Unix directory with spaces
Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. -- 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: FTP to Unix directory with spaces
On 28 Jul 2009 11:34:10 -0700, dennis.ro...@lmco.com (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. Except I have that access using Ultra-Edit, and I cut and pasted the directory from ultra-edit's FTP browser. But here it goes. 12:45:09 Enter PASSWORD ..: ### 12:45:09 230 Login successful. 12:45:09 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 12:45:09 250 Directory successfully changed. 12:45:10 FTP2: dir 12:45:10 150 Here comes the directory listing. 12:45:10 -Dataset opened; data connection starting. 12:45:10 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:10 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 Dataset attributes: 12:45:10 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS936 Unit=3390 12:45:10 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:10 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:10 226 Directory send OK. 12:45:10 -Transfer complete. 12:45:11 3673 bytes received in 0.03 seconds (122433 bytes/s) 12:45:11 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 User=D44201 12:45:11 Data bytes written: 3577. 12:45:11 226 Disk tracks written: 1. 12:45:12 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 12:45:12 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder 12:45:12 -rw-r--r--1 6002910446 Jul 28 18:12 address_incr.dat I tried it again, with a more limited dir - which didn't show Test Folder for some reason (it is visible above): 12:45:42 FTP2: dir t* 12:45:43 150 Here comes the directory listing. 12:45:43 -Dataset opened; data connection starting. 12:45:43 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:43 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 Dataset attributes: 12:45:43 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS618 Unit=3390 12:45:43 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:43 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:43 226 Directory send OK. 12:45:43 -Transfer complete. 152 bytes received in 0.03 seconds (5066 bytes/s) 12:45:44 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 User=D44201 12:45:44 Data bytes written: 148. 12:45:44 226 Disk tracks written: 1. 12:45:44 -rw-r--r--1 60029104 5976435 Jul 23 15:07 test_scores-7-23.dat 12:45:44 -rw-r--r--1 60029104 305884107 Jul 25 03:51 test_scores.dat 12:45:45 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 12:45:45 550 Failed to change directory. 12:45:45 FTP2: END 12:45:45 221 Goodbye. 12:45:45 221 Session terminated 12:45:45 T01F2030I FTP2 returns CC=8 ... -- 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: FTP to Unix directory with spaces
Do you have anyone that can do an IP trace on the z box? In particular, the failing transfer vs. the start of the good one. You said that they use spaces in the names for other systems. Can you determine what the receiving systems are? This could be one of those things where both ends do something weird and the end result is failure. Dennis Roach GHG Corporation Lockheed Martin Mission Services Facilities Design and Operations Contract NASA/JSC Address: 2100 Space Park Drive LM-15-4BH Houston, Texas 77058 Mail: P.O. Box 58487 Mail Code H4C Houston, Texas 77258 Phone: Voice: (281)336-5027 Cell: (713)591-1059 Fax:(281)336-5410 E-Mail: dennis.ro...@lmco.com All opinions expressed by me are mine and may not agree with my employer or any person, company, or thing, living or dead, on or near this or any other planet, moon, asteroid, or other spatial object, natural or manufactured, since the beginning of time. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Howard Brazee Sent: Tuesday, July 28, 2009 1:46 PM To: IBM-MAIN@bama.ua.edu Subject: Re: FTP to Unix directory with spaces On 28 Jul 2009 11:34:10 -0700, dennis.ro...@lmco.com (Dennis Roach) wrote: Not actually. What we are wanting to see is the directory up level. Try cd /ps cd /ps/cs90ftp cd /ps/cs90ftp/conversion_files cd /ps/cs90ftp/conversion_files/CC cd /ps/cs90ftp/conversion_files/CC/extract dir What I would suspect is that somewhere along the way something does not exist or you do not have the required access. This will list the last valid directory in the path. Except I have that access using Ultra-Edit, and I cut and pasted the directory from ultra-edit's FTP browser. But here it goes. 12:45:09 Enter PASSWORD ..: ### 12:45:09 230 Login successful. 12:45:09 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract 12:45:09 250 Directory successfully changed. 12:45:10 FTP2: dir 12:45:10 150 Here comes the directory listing. 12:45:10 -Dataset opened; data connection starting. 12:45:10 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:10 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 Dataset attributes: 12:45:10 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS936 Unit=3390 12:45:10 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:10 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:10 226 Directory send OK. 12:45:10 -Transfer complete. 12:45:11 3673 bytes received in 0.03 seconds (122433 bytes/s) 12:45:11 Dataset name: D44201.FTP.TMP.T4510028.P9758.S9758 User=D44201 12:45:11 Data bytes written: 3577. 12:45:11 226 Disk tracks written: 1. 12:45:12 drwxr-xr-x2 60029104 4096 May 20 22:41 External System ID for SIT 12:45:12 drwxr-xr-x2 60029104 4096 Jul 28 15:27 Test Folder 12:45:12 -rw-r--r--1 6002910446 Jul 28 18:12 address_incr.dat I tried it again, with a more limited dir - which didn't show Test Folder for some reason (it is visible above): 12:45:42 FTP2: dir t* 12:45:43 150 Here comes the directory listing. 12:45:43 -Dataset opened; data connection starting. 12:45:43 Data transfer Type is ASCII. Structure is File. Mode is Stream. 12:45:43 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 Dataset attributes: 12:45:43 Dsorg=PS Recfm=VB Lrecl=137 Blksize=9076 Volser=DBS618 Unit=3390 12:45:43 Primary allocation is 5 tracks. Secondary allocation is 15 tracks. 12:45:43 150 Network data which exceeds LRECL will be wrapped to the next record. 12:45:43 226 Directory send OK. 12:45:43 -Transfer complete. 152 bytes received in 0.03 seconds (5066 bytes/s) 12:45:44 Dataset name: D44201.FTP.TMP.T4542937.P2546.S2546 User=D44201 12:45:44 Data bytes written: 148. 12:45:44 226 Disk tracks written: 1. 12:45:44 -rw-r--r--1 60029104 5976435 Jul 23 15:07 test_scores-7-23.dat 12:45:44 -rw-r--r--1 60029104 305884107 Jul 25 03:51 test_scores.dat 12:45:45 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 12:45:45 550 Failed to change directory. 12:45:45 FTP2: END 12:45:45 221 Goodbye. 12:45:45 221 Session terminated 12:45:45 T01F2030I FTP2 returns CC=8 ... -- 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: FTP to Unix directory with spaces
The Sun boxes which concern these FTPs all have Red Hat Linux. -- 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: FTP to Unix directory with spaces
On Tue, 28 Jul 2009 11:48:27 -0600, Howard Brazee wrote: 10:06:10 -Logged in - User=D44201 Working directory D44201. 10:06:10 ProductID: Unicenter TCPaccess Communications Server Rel 6.0.0 10:06:10 (C) Copyright 1987-2003 Computer Associates International, Inc. 10:06:10 Component: Client FTP, A6007420 UFTP2 10:06:10 Enter command This is likely a defect in the CA FTP client. Deal with CA. Perhaps they'll create a PTF that can be APPLYed without BYPASS. or '?' 10:06:10 FTP2: OPEN cs-dev-app-1.cusys.edu 10:06:10 220 Welcome to the new SIS FTP Service. All activities can and will be logged. 10:06:10 Enter name (CS-DEV-APP-1.CUSYS.EDU:d44201): cs90ftp 10:06:10 Enter PASSWORD ..### They really think you have a printer-keyboard and they can blank out the password like that? 10:06:10 230 Login successful. 10:06:10 FTP2: cd /ps/cs90ftp/conversion_files/CC/extract/Test Folder 10:06:10 550 Failed to change directory. 10:06:10 FTP2: dir 10:06:11 -- gil -- 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