 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FTP a zipped file to a client in a batch job from AS/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 05:26:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: brenger</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/#comment-60257</link>
		<dc:creator>brenger</dc:creator>
		<pubDate>Tue, 24 Feb 2009 00:37:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-60257</guid>
		<description><![CDATA[FYI for any others out there thinking of this:

PUT /QDLS/EMAIL/EMAIL.ZIP     D:FTPUSERIDEMAIL.ZIP
PUT /QDLS/EMAIL/EMAIL.ZIP 

instead of stmt 1, use stmt 2.]]></description>
		<content:encoded><![CDATA[<p>FYI for any others out there thinking of this:</p>
<p>PUT /QDLS/EMAIL/EMAIL.ZIP     D:FTPUSERIDEMAIL.ZIP<br />
PUT /QDLS/EMAIL/EMAIL.ZIP </p>
<p>instead of stmt 1, use stmt 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/#comment-60237</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Mon, 23 Feb 2009 15:46:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-60237</guid>
		<description><![CDATA[Hi,

That all looks OK to me apart from the &quot;550 Cannot STOR.&quot; message.  If I google for this it seems to be a problem with authority on the FTP server.  Can you check what happens if you FTP from somewhere else, maybe from a PC?

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>That all looks OK to me apart from the &#8220;550 Cannot STOR.&#8221; message.  If I google for this it seems to be a problem with authority on the FTP server.  Can you check what happens if you FTP from somewhere else, maybe from a PC?</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brenger</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/#comment-60231</link>
		<dc:creator>brenger</dc:creator>
		<pubDate>Mon, 23 Feb 2009 15:29:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-60231</guid>
		<description><![CDATA[I can get logged in  , then I get an error msg
I&#039;m surprised I got this far.  Thanks for any help.

*************** Beginning of data *************************************
 Output redirected to a file.                                           
 Input read from specified override file.                               
 Connecting to host ip-999-99-999-99.nframe.net at address 999.99.999.99 using
  port 21.                                                              
 220 Gene6 FTP Server v3.10.0 (Build 2) ready...                        
 Enter login ID (ftbdc):                                                
 331 Password required for USERID.                                      
 230 User USERID logged in.                                             
 UNIX Type: L8                                                          
 Enter an FTP subcommand.                                               
 &gt; NAMEFMT 1                                                            
 500 Unknown command.                                                   
 Client NAMEFMT is 1.                                                   
 Enter an FTP subcommand.                                               
 &gt; PUT /QDLS/EMAIL/EMAIL.ZIP  D:FTPLEGIONEMAIL.ZIP                   
 227 Entering Passive Mode (999,99,999,99,195,123)    
 550 Cannot STOR.              
Enter an FTP subcommand.      
&gt; QUIT                        
221 Goodbye. 


my srce cmds:
*************** Beginning of data *****************
USERID pwrd                                    
NAMEFMT 1                                          
PUT /QDLS/EMAIL/EMAIL.ZIP  D:FTPUSERIDEMAIL.ZIP 
QUIT]]></description>
		<content:encoded><![CDATA[<p>I can get logged in  , then I get an error msg<br />
I&#8217;m surprised I got this far.  Thanks for any help.</p>
<p>*************** Beginning of data *************************************<br />
 Output redirected to a file.<br />
 Input read from specified override file.<br />
 Connecting to host ip-999-99-999-99.nframe.net at address 999.99.999.99 using<br />
  port 21.<br />
 220 Gene6 FTP Server v3.10.0 (Build 2) ready&#8230;<br />
 Enter login ID (ftbdc):<br />
 331 Password required for USERID.<br />
 230 User USERID logged in.<br />
 UNIX Type: L8<br />
 Enter an FTP subcommand.<br />
 &gt; NAMEFMT 1<br />
 500 Unknown command.<br />
 Client NAMEFMT is 1.<br />
 Enter an FTP subcommand.<br />
 &gt; PUT /QDLS/EMAIL/EMAIL.ZIP  D:FTPLEGIONEMAIL.ZIP<br />
 227 Entering Passive Mode (999,99,999,99,195,123)<br />
 550 Cannot STOR.<br />
Enter an FTP subcommand.<br />
&gt; QUIT<br />
221 Goodbye. </p>
<p>my srce cmds:<br />
*************** Beginning of data *****************<br />
USERID pwrd<br />
NAMEFMT 1<br />
PUT /QDLS/EMAIL/EMAIL.ZIP  D:FTPUSERIDEMAIL.ZIP<br />
QUIT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/#comment-60224</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:08:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-60224</guid>
		<description><![CDATA[Hi,

Yes, you&#039;ll need to put the user and password in a file or source file that you can use as a &quot;script&quot; for the FTP session.  You then use OVRDBF to override the input for the FTP command to your script file - something like this :-

OVRDBF FILE(INPUT) TOFILE(Yourlib/Yourfile) MBR(Yourmember)
OVRDBF FILE(OUTPUT) TOFILE(Yourlib/FTPLOG) MBR(Yourmember)
FTP RMTSYS(Servername)
DLTOVR *ALL

This will read the FTP commands from Yourlib/Yourfile(Yourmember) and will create output for the command in Yourlib/FTPLOG(Yourmember) - what would normally be shown on the screen if you run the commands interactively.

This isn&#039;t a marvellous way of handling security (the auditors don&#039;t take kindly to passwords being stored in files) - an alternative is to write a small program that builds the FTP script file for you and prompts for the userid and password - but then you still need manual intervention.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes, you&#8217;ll need to put the user and password in a file or source file that you can use as a &#8220;script&#8221; for the FTP session.  You then use OVRDBF to override the input for the FTP command to your script file &#8211; something like this :-</p>
<p>OVRDBF FILE(INPUT) TOFILE(Yourlib/Yourfile) MBR(Yourmember)<br />
OVRDBF FILE(OUTPUT) TOFILE(Yourlib/FTPLOG) MBR(Yourmember)<br />
FTP RMTSYS(Servername)<br />
DLTOVR *ALL</p>
<p>This will read the FTP commands from Yourlib/Yourfile(Yourmember) and will create output for the command in Yourlib/FTPLOG(Yourmember) &#8211; what would normally be shown on the screen if you run the commands interactively.</p>
<p>This isn&#8217;t a marvellous way of handling security (the auditors don&#8217;t take kindly to passwords being stored in files) &#8211; an alternative is to write a small program that builds the FTP script file for you and prompts for the userid and password &#8211; but then you still need manual intervention.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brenger</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ftp-a-zipped-file-to-a-client-in-a-batch-job/#comment-60223</link>
		<dc:creator>brenger</dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:44:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-60223</guid>
		<description><![CDATA[OK, if I use FTP don&#039;t I have to put user, password, and put in some kind of source stmt?  like qcmdsrc.
or do they go into the clp?]]></description>
		<content:encoded><![CDATA[<p>OK, if I use FTP don&#8217;t I have to put user, password, and put in some kind of source stmt?  like qcmdsrc.<br />
or do they go into the clp?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.035 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 08:58:39 -->