 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; RUNSQLSTM</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/as400/runsqlstm/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 00:58:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Trap SQLCODE from RUNSQLSTM</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/trap-sqlcode-from-runsqlstm/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/trap-sqlcode-from-runsqlstm/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 21:13:58 +0000</pubDate>
		<dc:creator>khalon</dc:creator>
				<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SQLCODES]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/trap-sqlcode-from-runsqlstm/</guid>
		<description><![CDATA[New Answer by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/trap-sqlcode-from-runsqlstm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Execute SQL SELECT via RUNSQLSTM error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/execute-sql-select-via-runsqlstm-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/execute-sql-select-via-runsqlstm-error/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:42:47 +0000</pubDate>
		<dc:creator>DanTheDane</dc:creator>
				<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SELECT statement]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Discussion Post by WoodEngineer]]></description>
				<content:encoded><![CDATA[New Discussion Post by WoodEngineer]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/execute-sql-select-via-runsqlstm-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SQL9010 is: RUNSQLSTM command failed.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-is-runsqlstm-command-failed/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-is-runsqlstm-command-failed/#comments</comments>
		<pubDate>Sun, 15 May 2011 06:25:10 +0000</pubDate>
		<dc:creator>Lllooloool</dc:creator>
				<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SQL error messages]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[SQL9010 is: RUNSQLSTM command failed.]]></description>
				<content:encoded><![CDATA[<p>SQL9010 is: RUNSQLSTM command failed.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-is-runsqlstm-command-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL 9010 Error when using RUNSQLSTM</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-error-when-using-runsqlstm/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-error-when-using-runsqlstm/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 08:03:19 +0000</pubDate>
		<dc:creator>MaldaTabbah</dc:creator>
				<category><![CDATA[CL Program]]></category>
		<category><![CDATA[CLPROGRAM]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SQL error messages]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a CL program having the following RUNSQLSTM RUNSQLSTM  SRCFILE(AMBDEV/MSRCAMB) SRCMBR(AMBJARRVK)            COMMIT(*NONE)                            AMBJARRVK is a SQL member file in MSRCAMB source file having this SQL statment DELETE FROM GDPF WHERE GDUSID = &#8216;A365&#8242; AND GDOID = &#8216;JAR&#8217; I am receiving SQL9010 error when running the CL program&#8230; Any hint on where is the [...]]]></description>
				<content:encoded><![CDATA[<p>I have a CL program having the following RUNSQLSTM<br/><br/> RUNSQLSTM  SRCFILE(AMBDEV/MSRCAMB) SRCMBR(AMBJARRVK)            COMMIT(*NONE)                            <br/><br/> AMBJARRVK is a SQL member file in MSRCAMB source file having this SQL statment<br/><br/> DELETE FROM GDPF WHERE GDUSID = &#8216;A365&#8242; AND GDOID = &#8216;JAR&#8217;<br/><br/> I am receiving SQL9010 error when running the CL program&#8230; Any hint on where is the problem?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql9010-error-when-using-runsqlstm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AS400 RUNSQLSTM &#8211; Problem with CAST</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-runsqlstm-problem-with-cast/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/as400-runsqlstm-problem-with-cast/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 16:27:38 +0000</pubDate>
		<dc:creator>CharlieBrowne</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[DB2/400]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[V4R5]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am using a RUNSQLSTM to insert records from file A into file B. One of the fiels in defined as 4S 0 in file A and as 4A in file B. If the value in file A is zero, not matter what I have tried file B gets populated with a 0 followed by [...]]]></description>
				<content:encoded><![CDATA[<p>I am using a RUNSQLSTM to insert records from file A into file B.<br/><br/> One of the fiels in defined as 4S 0 in file A and as 4A in file B. <br/><br/> If the value in file A is zero, not matter what I have tried file B gets populated with a 0 followed by 3 blanks. I need to be &#8217;0000&#8242;<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/as400-runsqlstm-problem-with-cast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RUNSQLSTM Output</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-output/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-output/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 15:52:15 +0000</pubDate>
		<dc:creator>Gvivesa</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Can I get a file as output?]]></description>
				<content:encoded><![CDATA[<p>Can I get a file as output?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filed lenghts</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/filed-lenghts/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/filed-lenghts/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 13:34:51 +0000</pubDate>
		<dc:creator>Skoliberty</dc:creator>
				<category><![CDATA[iSeries]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[V5R3]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What is the maximium length for a field using runsqlstm on the Iseries v5 r3? We are having issues compiling. Keep getting an error in position 80.]]></description>
				<content:encoded><![CDATA[<p>What is the maximium length for a field using runsqlstm on the Iseries v5 r3?  We are having issues compiling.  Keep getting an error in position 80.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/filed-lenghts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>results of CL commands</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/results-of-cl-commands/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/results-of-cl-commands/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 07:09:45 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[AS/400 errors]]></category>
		<category><![CDATA[CL]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[how can i see the result of a cl command which i execute. For example, if i executing a command runsqlstm and it says command failed. how do i see the detailed description for the same result like why the command failed]]></description>
				<content:encoded><![CDATA[<p>how can i see the result of a cl command which i execute.<br />
For example, if i executing a command runsqlstm and it says command failed. how do i see the detailed description for the same result like why the command failed</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/results-of-cl-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Error when trying to drop a table that doesn&#8217;t exist in RUNSQLSTM</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-when-trying-to-drop-a-table-that-doesnt-exist-in-runsqlstm/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-when-trying-to-drop-a-table-that-doesnt-exist-in-runsqlstm/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 10:03:56 +0000</pubDate>
		<dc:creator>Gingertosser</dc:creator>
				<category><![CDATA[DROP]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If I try and DROP a table that does not exist the RUNSQLSTM will fail. Is it possible to monitor for this in the RUNSQLSTM so it won&#8217;t fail?]]></description>
				<content:encoded><![CDATA[<p>If I try and DROP a table that does not exist the RUNSQLSTM will fail. Is it possible to monitor for this in the RUNSQLSTM so it won&#8217;t fail?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-when-trying-to-drop-a-table-that-doesnt-exist-in-runsqlstm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Error when executing RUNSQLSTM from CL program</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-when-executing-runsqlstm-from-cl-program/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-when-executing-runsqlstm-from-cl-program/#comments</comments>
		<pubDate>Tue, 06 May 2008 15:32:09 +0000</pubDate>
		<dc:creator>Tcwalls</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[AS/400 errors]]></category>
		<category><![CDATA[CL]]></category>
		<category><![CDATA[RUNSQLSTM]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am trying to use the RUNSQLSTM command. I get the error message &#8220;statement not allowed&#8221; Not really trying anything fancy. In CL program RUNSQLSTM SRCFILE(jwe/QCLSRC) SRCMBR(SQL1) + COMMIT(*NONE) In SQL1 I have SELECT mstid, SUBSTR(ftxref,1,1) AS ftxref_1, SUBSTR(HEX(SUBSTR(ftxref,2,7)),1,9) AS char, ftext, ftxtno FROM MEDPDATA/ftxp010 WHERE SUBSTR(ftxref,1,1) NOT IN (&#8216;A&#8217;,'M&#8217;) AND ftxref NOT IN (SELECT [...]]]></description>
				<content:encoded><![CDATA[<p>I am trying to use the RUNSQLSTM command.  I get the error message &#8220;statement not allowed&#8221;</p>
<p>Not really trying anything fancy.</p>
<p>In CL program</p>
<p> RUNSQLSTM  SRCFILE(jwe/QCLSRC) SRCMBR(SQL1) +<br />
                           COMMIT(*NONE)   </p>
<p>In SQL1 I have</p>
<p>SELECT mstid,<br />
        SUBSTR(ftxref,1,1) AS ftxref_1,<br />
        SUBSTR(HEX(SUBSTR(ftxref,2,7)),1,9) AS char,<br />
        ftext,<br />
        ftxtno<br />
   FROM MEDPDATA/ftxp010<br />
  WHERE SUBSTR(ftxref,1,1) NOT IN (&#8216;A&#8217;,'M&#8217;)<br />
    AND ftxref NOT IN (SELECT scrcod<br />
                         FROM tabp160)<br />
  UNION<br />
SELECT mstid,<br />
       SUBSTR(ftxref,1,1) AS ftxref_1,<br />
       SUBSTR(ftxref,2,7) AS char,<br />
       ftext,<br />
       ftxtno<br />
  FROM MEDPDATA/ftxp010<br />
WHERE SUBSTR(ftxref,1,1) IN (&#8216;A&#8217;,'M&#8217;)<br />
AND ftxref NOT IN (SELECT scrcod<br />
                        FROM tabp160)</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-when-executing-runsqlstm-from-cl-program/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</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/28 queries in 0.042 seconds using memcached
Object Caching 905/1050 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 05:53:43 -->