On Wed, 26 Jun 2013 15:40:38 -0500, John McKown wrote:
>The following worked for me. Entire script. (with host/user/password
>changed).
>
>#!/usr/bin/python
>from ftplib import FTP;
>ftp=FTP('host');
>ftp.login("user","password");
>ftp.voidcmd("site filetype=jes");
>f=open("test.jcl","r");
>ftp.storlines("STOR what.ever",f);
>f.close();
>ftp.quit();
>
>I think you needed the "what.ever" after the STOR. And this needs to be a
>valid z/OS data set name syntax. It is not used for anything. It just must
>be there.
>
Interesting. Working from a command line Solaris client with z/OS 1.13 server,
I can't make it fail:
220-FTPD1 IBM FTP CS V1R13
...
Remote system type is MVS.
ftp> put foo=bar
200 Port request OK.
501 Invalid data set name "foo=bar". Use MVS Dsname conventions.
ftp> quote site file=jes
200 SITE command was accepted
ftp> put foo=bar
200 Port request OK.
125 Sending Job to JES internal reader FIXrecfm 80
250-It is known to JES as JOB06645
250 Transfer completed successfully.
local: foo=bar remote: foo=bar
428 bytes sent in 0.28 seconds (1.48 Kbytes/s)
ftp> quit
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN