 




<?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: Running a job in SQL 2005  by calling a batch file from a As400 CL program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 20:55:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/#comment-71952</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 24 Dec 2009 23:47:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-71952</guid>
		<description><![CDATA[When you logon to the SQL 2005 system (actually on the system, not through any remote database connection), is the user defined on that PC and do you logon to the PC? Or is the user logging on to the network? I.e., is that user &lt;b&gt;only&lt;/b&gt; defined as a local user?

If a user of the same name is defined on the PC and on your network, be sure they&#039;re not being confused when you sit down at the PC to test the logon.

Then, is that user (the local PC user) authorized in the SQL 2005 database?

Tom]]></description>
		<content:encoded><![CDATA[<p>When you logon to the SQL 2005 system (actually on the system, not through any remote database connection), is the user defined on that PC and do you logon to the PC? Or is the user logging on to the network? I.e., is that user <b>only</b> defined as a local user?</p>
<p>If a user of the same name is defined on the PC and on your network, be sure they&#8217;re not being confused when you sit down at the PC to test the logon.</p>
<p>Then, is that user (the local PC user) authorized in the SQL 2005 database?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gullu1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/#comment-46821</link>
		<dc:creator>gullu1</dc:creator>
		<pubDate>Wed, 25 Oct 2006 11:01:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-46821</guid>
		<description><![CDATA[Thanks for your reply DeadMeatinLA. But this CL program works fine with our SQL 7 server. Just does n&#039;t work for SQL 2005. Also if I include some non-sql command in the batch file like copy file and call this program it works. It does n&#039;t execute the sql command to run this job.
Thank you..]]></description>
		<content:encoded><![CDATA[<p>Thanks for your reply DeadMeatinLA. But this CL program works fine with our SQL 7 server. Just does n&#8217;t work for SQL 2005. Also if I include some non-sql command in the batch file like copy file and call this program it works. It does n&#8217;t execute the sql command to run this job.<br />
Thank you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deadmeatinla</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/#comment-46822</link>
		<dc:creator>deadmeatinla</dc:creator>
		<pubDate>Tue, 24 Oct 2006 21:10:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-46822</guid>
		<description><![CDATA[Might be a minor point... but when I key some values into the RUNRMTCMD command in the source file editor on the iSeries the RMTUSER field and the PWD field do not have single quotes around the entries.]]></description>
		<content:encoded><![CDATA[<p>Might be a minor point&#8230; but when I key some values into the RUNRMTCMD command in the source file editor on the iSeries the RMTUSER field and the PWD field do not have single quotes around the entries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gullu1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/running-a-job-in-sql-2005-by-calling-a-batch-file-from-a-as400-cl-program/#comment-46823</link>
		<dc:creator>gullu1</dc:creator>
		<pubDate>Tue, 24 Oct 2006 10:57:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-46823</guid>
		<description><![CDATA[Thanks for your reply TonyRa. Here are the informations:

The As400 CL program is like this:

PGM                                    
                                        
 RUNRMTCMD  CMD(&#039;C:BATCHESWWW03W.BAT&#039;)
    RMTLOCNAME(&#039;IP_address of the sql 2005 computer&#039; *IP) +    
    RMTUSER(&#039;userName&#039;) RMTPWD(&#039;Password&#039;) 
                                        
  ENDPGM    

The batch file is like this:

sqlcmd -S Ip_address -d msdb -U user_name -P password -i &quot;c:batchesWWW03W_input.txt&quot; -o &quot;c:batchesWWW03W_output.txt&quot;

The input file is like this:
sp_start_job @job_name = &quot;Impt_WWW03W_ODBC&quot;

Inside the batch file if I write some non-sql commands like copy file . It works.

Thank you !

]]></description>
		<content:encoded><![CDATA[<p>Thanks for your reply TonyRa. Here are the informations:</p>
<p>The As400 CL program is like this:</p>
<p>PGM                                    </p>
<p> RUNRMTCMD  CMD(&#8216;C:BATCHESWWW03W.BAT&#8217;)<br />
    RMTLOCNAME(&#8216;IP_address of the sql 2005 computer&#8217; *IP) +<br />
    RMTUSER(&#8216;userName&#8217;) RMTPWD(&#8216;Password&#8217;) </p>
<p>  ENDPGM    </p>
<p>The batch file is like this:</p>
<p>sqlcmd -S Ip_address -d msdb -U user_name -P password -i &#8220;c:batchesWWW03W_input.txt&#8221; -o &#8220;c:batchesWWW03W_output.txt&#8221;</p>
<p>The input file is like this:<br />
sp_start_job @job_name = &#8220;Impt_WWW03W_ODBC&#8221;</p>
<p>Inside the batch file if I write some non-sql commands like copy file . It works.</p>
<p>Thank you !</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 6/9 queries in 0.012 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 23:52:38 -->