Maybe the SITE command needs to be "SITE FILETYPE=JES".  That's what I use when 
I use the FTP class library for DotNet from Kellerman software.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Tuesday, June 25, 2013 3:41 PM
To: [email protected]
Subject: Re: python code to sumbit batch job to jes

On Tue, 25 Jun 2013 15:06:36 -0500, don isenstadt <[email protected]> 
wrote:
>
># note quote already done by ftplib so no quote .. this works fine 
>ftp.voidcmd( "site file=JES" ) # Attempt to upload the file f = 
>open('tjcl.txt', r)
>ftp.storlines("STOR",f) <-- this is what fails..<<
>ftp.quit()
>error_perm: 501 Invalid data set name. Use MVS Dsname conventions. - 
>but I am not trying to send a dataset up just the a jobcard and iefbr14 in a 
>text file???
> 
Yes, but FTP is (was?) a moron.  It required a valid data set name in the 
target regardless.  I used to get errors of this sort, but I can't reproduce 
the behavior today on z/OS 1.13.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to