 




<?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: How to give If condition in CL/400 program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 05:26:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/#comment-113649</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Sun, 25 Nov 2012 00:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/#comment-113649</guid>
		<description><![CDATA[Using your style, it would look something like this:
&#160;
IF COND(%SST(&amp;ODOBNM 7 4) *LE %SST(&amp;VAR1 7 4) *AND +
&#160;&#160;&#160;&#160;&#160;&#160;&#160; %SST(&amp;ODOBNM 7 4) *GE %SST(&amp;VAR2 7 4))&#160; THEN( DO )
&#160;...code goes here
ENDDO
&#160;
I might use a style that looks something like this:
&#160;
if ( %sst( &amp;ODOBNM 7 4 ) *le %sst( &amp;VAR1 7 4 ) *and +
&#160;&#160;&#160;&#160; %sst( &amp;ODOBNM 7 4 ) *ge %sst( &amp;VAR2 7 4 ))&#160;&#160; do
&#160;...code goes here
enddo
&#160;
The compound COND() doesn&#039;t have another &quot;IF&quot; statement in the middle of it. Also, the &quot;AND&quot; connective is written &quot;*AND&quot;. When the two conditions are combined, you also must be careful about balancing the parentheses. Finally, notice the &quot;+&quot; after the &quot;*AND&quot; to indicate the continuation onto a new source line.
&#160;
It&#039;s hard to predict how the code is going to look after I post this comment. We can work out details if necessary.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Using your style, it would look something like this:<br />
&nbsp;<br />
IF COND(%SST(&amp;ODOBNM 7 4) *LE %SST(&amp;VAR1 7 4) *AND +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %SST(&amp;ODOBNM 7 4) *GE %SST(&amp;VAR2 7 4))&nbsp; THEN( DO )<br />
&nbsp;&#8230;code goes here<br />
ENDDO<br />
&nbsp;<br />
I might use a style that looks something like this:<br />
&nbsp;<br />
if ( %sst( &amp;ODOBNM 7 4 ) *le %sst( &amp;VAR1 7 4 ) *and +<br />
&nbsp;&nbsp;&nbsp;&nbsp; %sst( &amp;ODOBNM 7 4 ) *ge %sst( &amp;VAR2 7 4 ))&nbsp;&nbsp; do<br />
&nbsp;&#8230;code goes here<br />
enddo<br />
&nbsp;<br />
The compound COND() doesn&#8217;t have another &#8220;IF&#8221; statement in the middle of it. Also, the &#8220;AND&#8221; connective is written &#8220;*AND&#8221;. When the two conditions are combined, you also must be careful about balancing the parentheses. Finally, notice the &#8220;+&#8221; after the &#8220;*AND&#8221; to indicate the continuation onto a new source line.<br />
&nbsp;<br />
It&#8217;s hard to predict how the code is going to look after I post this comment. We can work out details if necessary.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 6r</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/#comment-113646</link>
		<dc:creator>6r</dc:creator>
		<pubDate>Sat, 24 Nov 2012 13:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-give-if-condition-in-cl400-program/#comment-113646</guid>
		<description><![CDATA[even if I want to use corrected condition like:-

IF COND(%SST(&amp;ODOBNM 7 4) *LE %SST(&amp;VAR1 7 4)) *AND  IF COND(%SST(&amp;ODOBNM 7 4) *GE %SST(&amp;VAR2 7 4)) 
Then condition prompt is not enoough longer to give this command,I mean full condition can&#039;t be typed because of lessser space in If condition prompt,any idea/suggestions,How o type this long condition in IF command in CL/400 PROGRAM.

Thanks]]></description>
		<content:encoded><![CDATA[<p>even if I want to use corrected condition like:-</p>
<p>IF COND(%SST(&amp;ODOBNM 7 4) *LE %SST(&amp;VAR1 7 4)) *AND  IF COND(%SST(&amp;ODOBNM 7 4) *GE %SST(&amp;VAR2 7 4))<br />
Then condition prompt is not enoough longer to give this command,I mean full condition can&#8217;t be typed because of lessser space in If condition prompt,any idea/suggestions,How o type this long condition in IF command in CL/400 PROGRAM.</p>
<p>Thanks</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.123 seconds using memcached
Object Caching 283/284 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 06:23:51 -->