 




<?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; SQLCOD</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sqlcod/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 05:09:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Embedded SQL in rpg for subfile build SQLCOD</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embedded-sql-in-rpg-for-subfile-build-sqlcod/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/embedded-sql-in-rpg-for-subfile-build-sqlcod/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 18:07:02 +0000</pubDate>
		<dc:creator>NickHutcheson1</dc:creator>
				<category><![CDATA[RPG]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLCOD]]></category>
		<category><![CDATA[SQLRPGLE]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[My fetch next in sql is getting sqlcod = -000000181 and sqlstt = &#8217;22007&#8242;.  I looked this up.  It says invalid date or time. Pointing to date data types in the file I am trying to read. The records contain two date fields and two time fields. How can I get around this?   Thanks [...]]]></description>
				<content:encoded><![CDATA[<p>My fetch next in sql is getting sqlcod = -000000181 and sqlstt = &#8217;22007&#8242;.  I looked this up.  It says invalid date or time. Pointing to date data types in the file I am trying to read.<br/><br/> The records contain two date fields and two time fields.<br/><br/> How can I get around this?<br/><br/>  <br/><br/> Thanks in advance.<br/><br/> Nick<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/embedded-sql-in-rpg-for-subfile-build-sqlcod/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>RPG with Dynamic SQL Problem &#8211; SQLCOD 501/312</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-with-dynamic-sql-problem-sqlcod-501312/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/rpg-with-dynamic-sql-problem-sqlcod-501312/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 12:21:00 +0000</pubDate>
		<dc:creator>MMAGuy</dc:creator>
				<category><![CDATA[Dynamic SQL]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLCOD]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m trying to do simple dynamic SQL in a program to select records for a subfile but it doesn&#8217;t seem to be working. sSql = &#8216;SELECT orderno FROM ordhdr &#8216; &#8216;WHERE custno = :scSrchCust &#8216;; following this I have: exec SQL CLOSE @Orders; exec SQL Prepare Stmt from :sSQL; exec SQL Declare @Orders SCROLL CURSOR [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m trying to do simple dynamic SQL in a program to select records for a subfile but it doesn&#8217;t seem to be working.</p>
<p>sSql =<br />
&#8216;SELECT orderno FROM ordhdr &#8216;<br />
&#8216;WHERE custno  = :scSrchCust &#8216;;  </p>
<p>following this I have:<br />
exec SQL CLOSE @Orders;<br />
exec SQL Prepare Stmt from :sSQL;<br />
exec SQL Declare @Orders SCROLL CURSOR for Stmt;<br />
exec SQL OPEN @Orders;<br />
I debug this and after the first statement it has a SQLCOD of 501.<br />
If I continue to &#8220;Step&#8221; through it skips the DECLARE Statement and stops on the OPEN Statement with a SQLCOD of 312.</p>
<p>What is the problem?</p>
<p>Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/rpg-with-dynamic-sql-problem-sqlcod-501312/feed/</wfw:commentRss>
		<slash:comments>2</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/14 queries in 0.022 seconds using memcached
Object Caching 385/402 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 06:32:57 -->