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.
On Wed, Jun 26, 2013 at 3:21 PM, don isenstadt <[email protected]>wrote:
> Still getting the
> Error_perm : 501 invalid data set name. Use ma's dsname conventions.
> I made the dsname on the pc hlq.test.jcl and I set up the same name on the
> mainframe
> I used FTP.voidcmd("SITE FILETYPE=JES)
> Any other ideas? Hopefully?
> Thanks .. Really a stumper
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
--
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?
Maranatha! <><
John McKown
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN