<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with COBOL program]]></title><description><![CDATA[<p dir="auto">I have been using Notepad++ to develop a COBOL program using the COBOL language syntax add-in. I experienced an unusual situation as follows.</p>
<p dir="auto">I had a line</p>
<p dir="auto">03 msg-eof              pic x(20) value “EOF - no records”.</p>
<p dir="auto">which showed <strong>correctly</strong> in NP++ i.e. starting in column 8 and finishing before column 72, as COBOLcode in FIXED format should do.</p>
<p dir="auto">When I compiled the program I was getting all sorts of errors which did not seem logical or possible. So I loaded the program into 2 other IDEs (Micro Focus Visual COBOL and OpenCobolIDE} which showed that the line had somehow extended beyond column 72:</p>
<p dir="auto">03 msg-eof                                 pic x(20) value “EOF - no records”.</p>
<p dir="auto">(where column 72 was between “EOF” and “-no records.” )</p>
<p dir="auto">and this was causing a multitude of subsequent errors in the program code which followed.</p>
<p dir="auto">Having corrected this code misplacement in the other  IDEs I then loaded the program in NP++ and it compiled correctly.</p>
<p dir="auto">So has anyone any idea how this misrepresentation of program code could occur in N++? It caused me hours of searching and puliing out my hair looking for what was really a none existant coding error.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17407/problem-with-cobol-program</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 00:50:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17407.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Apr 2019 23:58:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 22:52:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloricardo" aria-label="Profile: PaoloRicardo">@<bdi>PaoloRicardo</bdi></a></p>
<blockquote>
<p dir="auto">It seems to have been an isolated incident.</p>
</blockquote>
<p dir="auto">eventually bookmark this topic if you continue using notepad++ for cobol, so if it ever happens again, you can quickly crosscheck with the portable version from above and peter’s information.</p>
<p dir="auto">best regards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41980</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41980</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 05 Apr 2019 22:52:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 22:09:15 GMT]]></title><description><![CDATA[<p dir="auto">Meta/Peter</p>
<p dir="auto">If it was hidden characters I don’t know how they could have got into the  text especially for only one line. There are 55 lines before  the ‘funny’ one and lines 49-56 are of exactly the same format (though content is different.)</p>
<p dir="auto">The only “” I use is from my laptop keyboard - as far as I’m aware that doesn’t give smart quotes.</p>
<p dir="auto">Encoding is standard/default UTF-8 and the Global Styles and Global Override font is Consolas. There is no font name shown under COBOL.</p>
<p dir="auto">Anyway, thanks for your replies. It seems to have been an isolated incident.</p>
<p dir="auto">Paul</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41979</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41979</guid><dc:creator><![CDATA[PaoloRicardo]]></dc:creator><pubDate>Fri, 05 Apr 2019 22:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 13:35:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> said:</p>
<blockquote>
<p dir="auto">if your file did not contain any non standard hidden characters.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloricardo" aria-label="Profile: PaoloRicardo">@<bdi>PaoloRicardo</bdi></a>: <a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a>’s idea of hidden characters is reasonable.  And it might not even be hidden characters: I don’t know how COBOL works, but if you had Unicode characters, some take more than one byte to store, and if the COBOL compiler counts “bytes” instead of counting “characters” on a given line, that might do it.  (And in fact, if you used smart quotes <code>“”</code>, as was rendered by the forum, instead of using a plain ASCII quote marks <code>""</code>, those would be encoded as multibyte characters in a UTF-8 file.)</p>
<p dir="auto">Also, maybe you were using a proportional font, rather than monospaced font: <strong>Settings &gt; Style Configurator &gt; Language: Global Styles &gt; Style: Default Style &gt; Font name: ____</strong>.  Also checking <strong>Style: Global Override &gt; Font name</strong>, and any of the font names in <strong>Language: COBOL</strong> styles.  For example, I just put the <code>"EOF - no records"</code> straddling character 72 – once with the quotes, and once without; then I change the font of the STRING style to a non-proportional font (Juice ITC) which has very different character spacing.<br />
<img src="https://i.imgur.com/CcPYvpU.png" alt="" class=" img-fluid img-markdown" /><br />
Even though the first row has more characters (since it has the final <code>".</code>, and the second does not), the second row looks longer.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41971</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 05 Apr 2019 13:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 08:13:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloricardo" aria-label="Profile: PaoloRicardo">@<bdi>PaoloRicardo</bdi></a></p>
<blockquote>
<p dir="auto">So I don’t know why NP++ should show a different view than the other IDEs.</p>
</blockquote>
<p dir="auto">neither do i, if your file did not contain any non standard hidden characters.</p>
<p dir="auto">please test the following, to verify, if a clean notepad++ would do the same, with either the original file, if you still have it, or by trying to reproduce this on the newest notepad++ version:</p>
<ul>
<li>
<p dir="auto">download the notepad++ 7.6.6. portable version from <a href="https://notepad-plus-plus.org/repository/7.x/7.6.6/npp.7.6.6.bin.zip" rel="nofollow ugc">&gt;&gt;&gt; here &lt;&lt;&lt;</a>.<br />
(the portable version does not require any installation and runs completely independent and isolated from your installed version. all custom settings, as well as any stuff you might want to try at the portable version, will not modify your installed version)</p>
</li>
<li>
<p dir="auto">extract <code>npp.7.6.6.bin.zip</code> to e.g. your desktop.</p>
</li>
<li>
<p dir="auto"><strong>important note:</strong> make sure to close all instances of notepad++ that might be running, before starting the portable version at the next step.</p>
</li>
<li>
<p dir="auto">open the extracted <code>npp.7.6.6.bin</code> folder and start this portable version by double-clicking on <code>notepad++.exe</code> inside this folder.<br />
(note: notepad++.exe will just be seen as notepad++, if you have enabled to hide all known file extensions at your explorer settings)</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/41965</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41965</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 05 Apr 2019 08:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 07:47:34 GMT]]></title><description><![CDATA[<p dir="auto">Meta</p>
<p dir="auto">I already had a vertical edge setting of 72.<br />
The problem is that NP++ showed the line in question as being within this limit but, as I said, using other IDEs, the line went beyond column 72. So I don’t know why NP++ should show a different view than the other IDEs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41962</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41962</guid><dc:creator><![CDATA[PaoloRicardo]]></dc:creator><pubDate>Fri, 05 Apr 2019 07:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with COBOL program on Fri, 05 Apr 2019 06:00:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paoloricardo" aria-label="Profile: PaoloRicardo">@<bdi>PaoloRicardo</bdi></a></p>
<p dir="auto">i don’t know cobol or the syntax add-in, but maybe the vertical edge option will help a bit in spotting and preventing to exceed a fixed length of a 72 characters per line.</p>
<p dir="auto">please go to <code>settings &gt; preferences &gt; editing</code>, enable <code>show vertical edge</code> and set the number of columns you need.</p>
<p dir="auto">this is how the line mode will look like, showing a border:<br />
<img src="https://i.imgur.com/5uSyEYW.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">and this is the background mode, which will be invisible if all is ok, but highlight everything that exceeds your chosen number of characters per line:<br />
<img src="https://i.imgur.com/hdXIZpf.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/41958</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41958</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 05 Apr 2019 06:00:51 GMT</pubDate></item></channel></rss>