 




<?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: AS400 FTP Batch program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 05:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/#comment-61620</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Tue, 31 Mar 2009 08:21:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-61620</guid>
		<description><![CDATA[Hi,

The script is run by the FTP command (in combination with the OVRDBF commands).  The OVRDBF to file INPUT is to tell the FTP command to use the INPUT file as the script.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The script is run by the FTP command (in combination with the OVRDBF commands).  The OVRDBF to file INPUT is to tell the FTP command to use the INPUT file as the script.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tlloyd</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/#comment-61577</link>
		<dc:creator>tlloyd</dc:creator>
		<pubDate>Mon, 30 Mar 2009 16:17:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-61577</guid>
		<description><![CDATA[I am trying to perform the procedure suggested by Martin Gilbert in which the script file is executed by a CL. I do not see a line of CL code that will actually call the script. Could someone please enlighten me on this. I am new to the process and need assistance with writing an FTP batch job. 

Thanks for your help.]]></description>
		<content:encoded><![CDATA[<p>I am trying to perform the procedure suggested by Martin Gilbert in which the script file is executed by a CL. I do not see a line of CL code that will actually call the script. Could someone please enlighten me on this. I am new to the process and need assistance with writing an FTP batch job. </p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/#comment-53894</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Thu, 12 Jun 2008 17:04:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-53894</guid>
		<description><![CDATA[Looks like you have two things going on here.. 

1. FTP the file to an FTP server..
2. Copy the file from the FTP server to something no so FTP friendly..

Martin&#039;s suggestions for setting up the script is fine, and the trigger file idea is OK, but you can also try running a &quot;remote command&quot; in the FTP script.

Try it manually first - from an iSeries command line type FTP [servername] and then log in with the proper ID and password.  Then type HELP QUOTE and see what it tells you. The FTP &quot;QUOTE&quot; command should allow you to run a system command on a remote system - assuming the remote system supports it. You can also type HELP SERVER and get a list of commands the server supports.

I believe you should be able use the QUOTE command to include a line in your script after the PUT to run a batch file to handle the copy to the &quot;secured&quot; directory..

Another alternative is forget the FTP altogether. Use CPYTOSTMF to drop the file onto an IFS directory and then have your &quot;secure&quot; system pull the file from there..

Regards
Mike]]></description>
		<content:encoded><![CDATA[<p>Looks like you have two things going on here.. </p>
<p>1. FTP the file to an FTP server..<br />
2. Copy the file from the FTP server to something no so FTP friendly..</p>
<p>Martin&#8217;s suggestions for setting up the script is fine, and the trigger file idea is OK, but you can also try running a &#8220;remote command&#8221; in the FTP script.</p>
<p>Try it manually first &#8211; from an iSeries command line type FTP [servername] and then log in with the proper ID and password.  Then type HELP QUOTE and see what it tells you. The FTP &#8220;QUOTE&#8221; command should allow you to run a system command on a remote system &#8211; assuming the remote system supports it. You can also type HELP SERVER and get a list of commands the server supports.</p>
<p>I believe you should be able use the QUOTE command to include a line in your script after the PUT to run a batch file to handle the copy to the &#8220;secured&#8221; directory..</p>
<p>Another alternative is forget the FTP altogether. Use CPYTOSTMF to drop the file onto an IFS directory and then have your &#8220;secure&#8221; system pull the file from there..</p>
<p>Regards<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-ftp-batch-program/#comment-53867</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Wed, 11 Jun 2008 14:23:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-53867</guid>
		<description><![CDATA[Hi,

I would suggest using a sort of &quot;trigger file&quot; to indicate that there is a file to be processed.  You FTP your file to your non-secured folder, then FTP the trigger file to indicate that there&#039;s a file to be processed.  On a machine which has access to both the secured and non-secured folders you have a job running which waits for the trigger file to appear and once the trigger file is there, moves your file from the non-secured folder to the secured folder and removes the trigger file.

The use of the trigger file ensures that your job to move the file doesn&#039;t try to move the file while it&#039;s still being written to the folder.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I would suggest using a sort of &#8220;trigger file&#8221; to indicate that there is a file to be processed.  You FTP your file to your non-secured folder, then FTP the trigger file to indicate that there&#8217;s a file to be processed.  On a machine which has access to both the secured and non-secured folders you have a job running which waits for the trigger file to appear and once the trigger file is there, moves your file from the non-secured folder to the secured folder and removes the trigger file.</p>
<p>The use of the trigger file ensures that your job to move the file doesn&#8217;t try to move the file while it&#8217;s still being written to the folder.</p>
<p>Regards,</p>
<p>Martin Gilbert.</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.044 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 06:18:53 -->