<?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: executing a url from the as400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/executing-a-url-from-the-as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/executing-a-url-from-the-as400/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 10:51:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: pcatlin</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/executing-a-url-from-the-as400/#comment-57658</link>
		<dc:creator>pcatlin</dc:creator>
		<pubDate>Mon, 10 Nov 2008 16:25:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-57658</guid>
		<description><![CDATA[Bob..

It sounds like what you want to do is similar to a web services type call...  Scott Klement did some neat stuff with that a while back...
Take a look at this web page:
http://www.scottklement.com/httpapi/

You should be able to use this code to have an RPG program attach to the URL on your server, and then receive the return response (just like a browser would) back into a stream file.  You can then parse the stream file to review the results of the URL call...

Hope this helps
Phil C]]></description>
		<content:encoded><![CDATA[<p>Bob..</p>
<p>It sounds like what you want to do is similar to a web services type call&#8230;  Scott Klement did some neat stuff with that a while back&#8230;<br />
Take a look at this web page:<br />
<a href="http://www.scottklement.com/httpapi/" rel="nofollow">http://www.scottklement.com/httpapi/</a></p>
<p>You should be able to use this code to have an RPG program attach to the URL on your server, and then receive the return response (just like a browser would) back into a stream file.  You can then parse the stream file to review the results of the URL call&#8230;</p>
<p>Hope this helps<br />
Phil C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/executing-a-url-from-the-as400/#comment-57640</link>
		<dc:creator>mcl</dc:creator>
		<pubDate>Fri, 07 Nov 2008 20:32:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-57640</guid>
		<description><![CDATA[If I&#039;m understanding you, the URL you invoke will run some process that updates your database from the file you just uploaded. 

So, one option..
Can you call that process from a command line on the server? 
There is an FTP command called &quot;QUOTE&quot; which allows you to send a command to the FTP server. Of course, it all depends on permissions, paths, etc - but you might be able to call the process via FTP. Google is your friend for help with that.

Another option -
When you upload the file, the properties of the file should indicate when it was changed. It might be possible to set up a CRON job on your web server to check that file - and if the file has changed since the last time it was checked then process the file.  

Regards
Mike]]></description>
		<content:encoded><![CDATA[<p>If I&#8217;m understanding you, the URL you invoke will run some process that updates your database from the file you just uploaded. </p>
<p>So, one option..<br />
Can you call that process from a command line on the server?<br />
There is an FTP command called &#8220;QUOTE&#8221; which allows you to send a command to the FTP server. Of course, it all depends on permissions, paths, etc &#8211; but you might be able to call the process via FTP. Google is your friend for help with that.</p>
<p>Another option -<br />
When you upload the file, the properties of the file should indicate when it was changed. It might be possible to set up a CRON job on your web server to check that file &#8211; and if the file has changed since the last time it was checked then process the file.  </p>
<p>Regards<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: breinhart</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/executing-a-url-from-the-as400/#comment-57628</link>
		<dc:creator>breinhart</dc:creator>
		<pubDate>Fri, 07 Nov 2008 14:46:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-57628</guid>
		<description><![CDATA[Thanks Mike,

What I am trying to do is: I am FTP to a web server to dump a data file to update product availability on our web site for people to purchase.  I am dumping this file for update every fifteen minutes.  Once I have the file dumped, I am wanting to invoke the URL to update the web server database with the file I just sent.  I can call the AS400 CL from my desktop which allows the STRPCO command to work, but when I try to run the CL in a batch job, it does not work.  I understand that is because I am not using a PC to invoke the job with an AS400 5250 emulator session. I thought about invoking the URL once i was on the server within the FTP script, but I&#039;m not sure how to code that in the FTP script.  Any ideas?

Thanks,
Bob]]></description>
		<content:encoded><![CDATA[<p>Thanks Mike,</p>
<p>What I am trying to do is: I am FTP to a web server to dump a data file to update product availability on our web site for people to purchase.  I am dumping this file for update every fifteen minutes.  Once I have the file dumped, I am wanting to invoke the URL to update the web server database with the file I just sent.  I can call the AS400 CL from my desktop which allows the STRPCO command to work, but when I try to run the CL in a batch job, it does not work.  I understand that is because I am not using a PC to invoke the job with an AS400 5250 emulator session. I thought about invoking the URL once i was on the server within the FTP script, but I&#8217;m not sure how to code that in the FTP script.  Any ideas?</p>
<p>Thanks,<br />
Bob</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 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 11:11:48 -->