<?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>The ramblings of a yorkshire tyke &#187; iterators</title>
	<atom:link href="http://www.gennard.net/blog/tag/iterators/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gennard.net/blog</link>
	<description>Life, Rants and Programming In A Blog</description>
	<lastBuildDate>Sat, 10 Jul 2010 23:04:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Too Iterate or not&#8230;</title>
		<link>http://www.gennard.net/blog/2009/11/too-iterate-or-not/</link>
		<comments>http://www.gennard.net/blog/2009/11/too-iterate-or-not/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 20:51:06 +0000</pubDate>
		<dc:creator>spgennard</dc:creator>
				<category><![CDATA[CLR]]></category>
		<category><![CDATA[COBOL]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[BaseCL]]></category>
		<category><![CDATA[iterators]]></category>

		<guid isPermaLink="false">http://www.gennard.net/blog/?p=143</guid>
		<description><![CDATA[Over the next couple of weeks, I will explore some of the reasons why I think managed environments are good for COBOL. So.. lets the show on the road&#8230; Setting up arrays/occurs items in COBOL and manipulating them can be painful. Lets look at some traditional code for playing around with a &#8220;months&#8221; table. &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Over the next couple of weeks, I will explore some of the reasons why I think managed environments are good for COBOL.</p>
<p>So.. lets the show on the road&#8230;</p>
<p>Setting up arrays/occurs items in COBOL and manipulating them can be painful.  Lets look at some traditional code for playing around with a &#8220;months&#8221; table.</p>
<div class="codecolorer-container cobol blackboard" style="border: 1px solid #9F9F9F;width:435px;"><div class="cobol codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp;01 month-val<span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;January&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;February&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;March&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;April&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;May&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;June&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;July&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;August&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;September&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;October&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;November&quot;</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;<span style="color: #008000; font-weight: bold;">FILLER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span> &nbsp;<span style="color: #008000; font-weight: bold;">value</span> <span style="color: #ff0000;">&quot;December&quot;</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;01 month-tab <span style="color: #008000; font-weight: bold;">redefines</span> month-val<span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;05 &nbsp;months <span style="color: #008000; font-weight: bold;">occurs</span> 12 <span style="color: #000000; font-weight: bold;">times</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10 &nbsp;month-NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> X<span style="color: #339933;">&#40;</span>10<span style="color: #339933;">&#41;</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;01 month &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">PIC</span> 99<span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;01 secondQuarterMonths &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">pic</span> x<span style="color: #339933;">&#40;</span>70<span style="color: #339933;">&#41;</span><span style="color: #000066;">.</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot;The months are:&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">perform</span> <span style="color: #000000; font-weight: bold;">varying</span> month <span style="color: #008000; font-weight: bold;">from</span> 1 <span style="color: #008000; font-weight: bold;">by</span> 1 <span style="color: #000000; font-weight: bold;">until</span> month equals 12<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span> months<span style="color: #339933;">&#40;</span>month<span style="color: #339933;">&#41;</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">end-perform</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot;The second quarter months are: &quot;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">string</span> months<span style="color: #339933;">&#40;</span>4<span style="color: #339933;">&#41;</span> <span style="color: #008000; font-weight: bold;">delimited</span> <span style="color: #008000; font-weight: bold;">by</span> <span style="color: #008000; font-weight: bold;">space</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #008000; font-weight: bold;">delimited</span> <span style="color: #008000; font-weight: bold;">by</span> <span style="color: #008000; font-weight: bold;">size</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; months<span style="color: #339933;">&#40;</span>5<span style="color: #339933;">&#41;</span> <span style="color: #008000; font-weight: bold;">delimited</span> <span style="color: #008000; font-weight: bold;">by</span> <span style="color: #008000; font-weight: bold;">space</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #008000; font-weight: bold;">delimited</span> <span style="color: #008000; font-weight: bold;">by</span> <span style="color: #008000; font-weight: bold;">size</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; months<span style="color: #339933;">&#40;</span>6<span style="color: #339933;">&#41;</span> <span style="color: #008000; font-weight: bold;">delimited</span> <span style="color: #008000; font-weight: bold;">by</span> <span style="color: #008000; font-weight: bold;">space</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">into</span> secondQuarterMonths<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">on</span> <span style="color: #008000; font-weight: bold;">overflow</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot;FATAL Error - secondQuarterMonths is too small&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">stop</span> <span style="color: #008000; font-weight: bold;">run</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">end-string</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span> secondQuarterMonths</div></div>
<p>Now, imagine we can use one or two of the .Net&#8217;s base class libraries combined with some nifty natural extensions to COBOL to do some of the heavy lifting.</p>
<p>Defining the month item as a native .Net type ie: a string combined with using the base class libraries Split methods allows us to setup a array quickly.</p>
<div class="codecolorer-container cobol blackboard" style="border: 1px solid #9F9F9F;width:435px;"><div class="cobol codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; 01 commaDelimited &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">string</span> <span style="color: #008000; font-weight: bold;">value</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">&quot;January,February,March,April,May,June,July,August,&quot;</span> &amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">&quot;September,October,November,December&quot;</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 01 months &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">string</span> <span style="color: #008000; font-weight: bold;">occurs</span> <span style="color: #008000; font-weight: bold;">any</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; 01 month &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">string</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 01 secondQuarterMonths &nbsp;<span style="color: #008000; font-weight: bold;">string</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">set</span> months <span style="color: #000000; font-weight: bold;">to</span> commaDelimited::<span style="color: #ff0000;">&quot;Split&quot;</span><span style="color: #339933;">&#40;</span><span style="color: #ff0000;">','</span><span style="color: #339933;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot;The months are: &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">perform</span> <span style="color: #000000; font-weight: bold;">varying</span> month <span style="color: #008000; font-weight: bold;">through</span> months<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span> month<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">end-perform</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot;The second quarter months are: &quot;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000; font-weight: bold;">set</span> secondQuarterMonths <span style="color: #000000; font-weight: bold;">to</span> <span style="color: #008000; font-weight: bold;">type</span> <span style="color: #ff0000;">&quot;System.String&quot;</span>::<span style="color: #ff0000;">&quot;Join&quot;</span><span style="color: #339933;">&#40;</span><span style="color: #ff0000;">'/'</span><span style="color: #000066;">,</span> months<span style="color: #000066;">,</span> 3<span style="color: #000066;">,</span> 3<span style="color: #339933;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> <span style="color: #ff0000;">&quot; &quot;</span> secondQuarterMonths</div></div>
<p>The .Net version, besides being smaller feels much easier to read, especially if you have any exposure to the .Net base class library from other languages such as C# or VB.Net.</p>
<p>Of course in a real world example, we don&#8217;t need to use the split method to setup an array, we could just use the &#8220;values&#8221; clause&#8230; for example:</p>
<div class="codecolorer-container cobol blackboard" style="border: 1px solid #9F9F9F;width:435px;"><div class="cobol codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; 01 months &nbsp;<span style="color: #008000; font-weight: bold;">string</span> <span style="color: #008000; font-weight: bold;">occurs</span> 12 <span style="color: #008000; font-weight: bold;">values</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">&quot;January&quot;</span> <span style="color: #ff0000;">&quot;February&quot;</span> <span style="color: #ff0000;">&quot;March&quot;</span> <span style="color: #ff0000;">&quot;April&quot;</span> <span style="color: #ff0000;">&quot;May&quot;</span> <span style="color: #ff0000;">&quot;June&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">&quot;July&quot;</span> <span style="color: #ff0000;">&quot;August&quot;</span> <span style="color: #ff0000;">&quot;September&quot;</span> <span style="color: #ff0000;">&quot;October&quot;</span> <span style="color: #ff0000;">&quot;November&quot;</span> <span style="color: #ff0000;">&quot;December&quot;</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;01 month <span style="color: #008000; font-weight: bold;">string</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">perform</span> <span style="color: #000000; font-weight: bold;">varying</span> month <span style="color: #008000; font-weight: bold;">through</span> months<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span> month<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">end-perform</span></div></div>
<p>If however you don&#8217;t want to hardcode the months, you can always use: CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName() in the System.Globalization namespace. <img src='http://www.gennard.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So&#8230; lets just do it&#8230;</p>
<div class="codecolorer-container cobol blackboard" style="border: 1px solid #9F9F9F;width:435px;"><div class="cobol codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp;01 Months <span style="color: #008000; font-weight: bold;">string</span> <span style="color: #008000; font-weight: bold;">occurs</span> <span style="color: #008000; font-weight: bold;">any</span><span style="color: #000066;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;01 Month <span style="color: #008000; font-weight: bold;">string</span><span style="color: #000066;">.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000; font-weight: bold;">set</span> Months <span style="color: #000000; font-weight: bold;">to</span> <span style="color: #008000; font-weight: bold;">type</span> <span style="color: #ff0000;">&quot;System.Globalization.DateTimeFormatInfo&quot;</span>::<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;CurrentInfo&quot;</span>::<span style="color: #ff0000;">&quot;MonthNames&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">perform</span> <span style="color: #000000; font-weight: bold;">varying</span> Month <span style="color: #008000; font-weight: bold;">through</span> Months<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">display</span> Month<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">end-perform</span></div></div>
<p>Now, I hope you feel like I do that COBOL and .Net are indeed perfect partners to each other.</p>
<hr />
<p>The above COBOL .Net code will execute on Micro Focus Net Express and I suspect it will also work on Fujitsu&#8217;s netCobol too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gennard.net/blog/2009/11/too-iterate-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
