 




<?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: SQL and RPG 400 (SQLRPG) Variable lengths help required.</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 00:24:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-78990</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 08 Jul 2010 10:54:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-78990</guid>
		<description><![CDATA[Didn&#039;t see this question .. seems like it should have been solved something like this ..
wrkVar = &#039;&#039;&#039;%&#039; + %trim(PNVAR) + &#039;%&#039;&#039;&#039;

execsql 
Select * from myfile 
where PNUM Like  :wrkVAR 

The  two quotes leaves a single quote in actual field the third quote terminates the string
so the field wkVar would contain   &#039;%123%&#039;  followed by a bunch of spaces which would be ignored
Phil]]></description>
		<content:encoded><![CDATA[<p>Didn&#8217;t see this question .. seems like it should have been solved something like this ..<br />
wrkVar = &#8221;&#8217;%&#8217; + %trim(PNVAR) + &#8216;%&#8221;&#8217;</p>
<p>execsql<br />
Select * from myfile<br />
where PNUM Like  :wrkVAR </p>
<p>The  two quotes leaves a single quote in actual field the third quote terminates the string<br />
so the field wkVar would contain   &#8216;%123%&#8217;  followed by a bunch of spaces which would be ignored<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-78988</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 08 Jul 2010 10:41:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-78988</guid>
		<description><![CDATA[Hi AS400rpgle
Please start a new question for this unrelated task.
Phil]]></description>
		<content:encoded><![CDATA[<p>Hi AS400rpgle<br />
Please start a new question for this unrelated task.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: as400rpgle</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-78976</link>
		<dc:creator>as400rpgle</dc:creator>
		<pubDate>Thu, 08 Jul 2010 06:50:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-78976</guid>
		<description><![CDATA[How to print a PDF image which is stored in BLOB using SQL RPGLE?]]></description>
		<content:encoded><![CDATA[<p>How to print a PDF image which is stored in BLOB using SQL RPGLE?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-75096</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 22 Mar 2010 20:18:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-75096</guid>
		<description><![CDATA[&lt;i&gt;Am I even on the right lines... who knows?&lt;/i&gt;

That depends whether the column in the database file is variable length or not. If the file has a fixed-length column, then you&#039;re not quite on the right track yet, especially if the user may want to enter a value such as &#039;%175&#039; instead of &#039;%175%&#039;.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Am I even on the right lines&#8230; who knows?</i></p>
<p>That depends whether the column in the database file is variable length or not. If the file has a fixed-length column, then you&#8217;re not quite on the right track yet, especially if the user may want to enter a value such as &#8216;%175&#8242; instead of &#8216;%175%&#8217;.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: as400kate</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-75094</link>
		<dc:creator>as400kate</dc:creator>
		<pubDate>Mon, 22 Mar 2010 20:00:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-75094</guid>
		<description><![CDATA[Thanks... I have now sorted the problem with your help.]]></description>
		<content:encoded><![CDATA[<p>Thanks&#8230; I have now sorted the problem with your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-and-rpg-400-sqlrpg-variable-lengths-help-required/#comment-75060</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Mon, 22 Mar 2010 13:45:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-75060</guid>
		<description><![CDATA[You &lt;ul&gt;can&lt;/ul&gt; create a variable length field in RPG.  It&#039;s done by specifying the VARYING keyword in the definition.  Just specify 15 as the length, since that would be its maximum.  

In your calculations, you could use the %Len( ) built-in-function to get the actual number of characters that were entered in the field.]]></description>
		<content:encoded><![CDATA[<p>You
<ul>can</ul>
<p> create a variable length field in RPG.  It&#8217;s done by specifying the VARYING keyword in the definition.  Just specify 15 as the length, since that would be its maximum.  </p>
<p>In your calculations, you could use the %Len( ) built-in-function to get the actual number of characters that were entered in the field.</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/8 queries in 0.040 seconds using memcached
Object Caching 339/340 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 05:11:25 -->