John

I am

ftp.sendcmd('SITE RECFM=FB LRECL=80 BLKSIZE=3200')

I just looked back at my original post and I apologize that the formatting is 
so messed up.

I'll try again and see if it looks better

------

My python looks like this (leaving out the error handling and the local file 
opening)        

 ftp = FTP(ZOS_IPADDR,
                ZOS_USERID,                  
                ZOS_PASSWORD)        
 ftp.sendcmd('SITE RECFM=FB LRECL=80 BLKSIZE=3200')       
 ftp.storbinary('STOR  '+member_name, temp_handle, 3200) 

The Python trace shows this (somewhat sanitized to remove userid and IP 
address) 

*cmd* 'PWD'*put* 'PWD\r\n'
*get* '257 "\'XXX.\'" is working directory.\r\n'
*resp* '257 "\'XXX.\'" is working directory.'
*cmd* u"CWD 'XXX.CUNIT.OBJECT'"
*put* u"CWD 'XXX.CUNIT.OBJECT'\r\n"
*get* '250 The working directory "XXX.CUNIT.OBJECT" is a partitioned data 
set\r\n'
*resp* '250 The working directory "XXX.CUNIT.OBJECT" is a partitioned data set
*cmd* 'SITE RECFM=FB LRECL=80 BLKSIZE=3200'
*put* 'SITE RECFM=FB LRECL=80 BLKSIZE=3200\r\n'
*get* '200 SITE command was accepted\r\n'
*resp* '200 SITE command was accepted'
*cmd* 'TYPE I' 
*put* 'TYPE I\r\n'
*get* '200 Representation type is Image\r\n'
*resp* '200 Representation type is Image'
*cmd* 'PASV' 
*put* 'PASV\r\n'
*get* '227 Entering Passive Mode (192,nn,nn,nn,19,248)\r\n'
*resp* '227 Entering Passive Mode (192,nn,nn,nn,19,248)'
*cmd* u'STOR HTODECKS' 
*put* u'STOR HTODECKS\r\n'
*get* '125 Storing data set XXX.CUNIT.OBJECT(HTODECKS)\r\n'
*resp* '125 Storing data set XXX.CUNIT.OBJECT(HTODECKS)'
*get* '250 Transfer completed successfully.\r\n'
*resp* '250 Transfer completed successfully.' done storing file HTODECKS
*cmd* 'QUIT' *put* 'QUIT\r\n'
*get* '221 Quit command received. Goodbye.\r\n'
*resp* '221 Quit command received. Goodbye.' 

The blocking on the target file is incorrect.

Janet

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to