<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FORMAT stmt in red in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408664#M26202</link>
    <description>Well I dont quite agree: The editor should make keywords blue - all of them - just like in the Enhanced Editor in SAS Classic or whatever it is called. It's not just an editor. It's the SAS Programming Language editor in Enterprise Guide.And as such I expect a professional tool.</description>
    <pubDate>Mon, 30 Oct 2017 14:00:30 GMT</pubDate>
    <dc:creator>PeterKellberg</dc:creator>
    <dc:date>2017-10-30T14:00:30Z</dc:date>
    <item>
      <title>FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408656#M26200</link>
      <description>&lt;P&gt;Why in heavens name is the FORMAT statement red in this code (EG version 7.15)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 359px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16302i0756680C12009FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408656#M26200</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-30T13:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408659#M26201</link>
      <description>&lt;P&gt;That is easy. The EDITOR does not really understand SAS code. It is just an editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They have programmed it with some rules that approximate how SAS might interpret the code.&amp;nbsp; That way it can give some color coded HINTS about the meaning of what you have typed.&amp;nbsp; But it really has no idea that SAS code is any different than your mother's meatloaf recipe.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408659#M26201</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-30T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408664#M26202</link>
      <description>Well I dont quite agree: The editor should make keywords blue - all of them - just like in the Enhanced Editor in SAS Classic or whatever it is called. It's not just an editor. It's the SAS Programming Language editor in Enterprise Guide.And as such I expect a professional tool.</description>
      <pubDate>Mon, 30 Oct 2017 14:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408664#M26202</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-30T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408672#M26203</link>
      <description>&lt;PRE&gt;
table age,sex*f=$sexfmt. ;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408672#M26203</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-30T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408682#M26204</link>
      <description>&lt;P&gt;Personally I would delete everything between the ; on the Proc Tabulate statement and the F in format.&lt;/P&gt;
&lt;P&gt;I suspect an invisible character OR something way out to the right on the Proc Tabulate statement that doesn't appear in your snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course just to create a "stumper" someone could have customized the keyword lists and applied a non-default color scheme for custom keywords.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408682#M26204</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-30T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408694#M26205</link>
      <description>&lt;P&gt;Most likely it is not seeing the PROC statement as valid.&lt;/P&gt;
&lt;P&gt;If I open EG 7.13 and start a new program file with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate ;
  format xxx ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then is does not make the FORMAT keyword red.&lt;/P&gt;
&lt;P&gt;But if hide the PROC statement then it does since you cannot have a FORMAT statement outside of a DATA or PROC step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*proc tabulate ;
  format xxx ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 214px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16307i973A0B53942DBCDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So in this case it looks like EG editor is better at highlighting programs than the Enhanced Editor in Display Manage of SAS 9.4.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 175px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16308i4D3D614E3D5362EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You need to look at the code above the PROC TABULATE statement to see what is confusing the editor.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps your code is in the middle of a macro definition?&amp;nbsp; Or perhaps you actually do have an open comment like in my example?&lt;/P&gt;
&lt;P&gt;Or perhaps something changed from 7.13 to 7.15?&amp;nbsp; Open a SAS support ticket.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408694#M26205</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-30T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408695#M26206</link>
      <description>&lt;P&gt;I appreciate all your suggestions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Sorry to say that are absolutely no hocus pocus in the code. No invisible characters whatsoever.&lt;/P&gt;
&lt;P&gt;Just write the few lines and see what happens. The red color is annoying.&amp;nbsp;it simply attracts unnecessary attention. FORMAT is valid statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408695#M26206</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-30T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408702#M26209</link>
      <description>HI Tom, I'm using EG version 7.15. EG 7.12 HF4 does not have this issue.</description>
      <pubDate>Mon, 30 Oct 2017 14:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408702#M26209</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-30T14:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408708#M26210</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17589"&gt;@PeterKellberg&lt;/a&gt; wrote:&lt;BR /&gt;HI Tom, I'm using EG version 7.15. EG 7.12 HF4 does not have this issue.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Open a ticket with SAS support.&lt;/P&gt;
&lt;P&gt;The issue might not be with the FORMAT statement, but with something in the first 6 lines that it is now processing differently that it changing the state.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408708#M26210</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-30T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408758#M26218</link>
      <description>&lt;P&gt;I typed the exact code you posted into a new program in EG 7.15 and I don't see the issue (red "format" statement).&amp;nbsp; If you post some code that can be pasted into a new program in EG 7.15&amp;nbsp;to reproduce, I'll be happy to investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with Tom, something in the prior code may be contributing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408758#M26218</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-10-30T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408767#M26221</link>
      <description>&lt;P&gt;Hi Casey, That's odd - should be the same. Actually it was one of my "customers" here in Statistics Denmark who notified me that his FORMAT statements now showed up in red in EG 7.15. And I was able to reproduce it with a simple code snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my Enhanced Editor Settings (tools, options, SAS Programs, Enhanced Editor Options, Appearance) undefined keywords&amp;nbsp;are red. I guess this is the standard. Could you be so kind to check your setting?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408767#M26221</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-30T16:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408894#M26226</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I confirmed my editor option to color undefined keywords red (the default) is set.&amp;nbsp; Also if I rename "format" to something incorrect like "forwat", it is properly colored red.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you type (or copy/paste) this into a new program in EG 7.15, do you see the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.class;
    format sex $sexfmt.;
    class age sex;
    table age, sex;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, that is odd.&amp;nbsp; (I'm not sure what would explain the difference we are seeing.)&amp;nbsp; Perhaps we have other different options set.&amp;nbsp; Or maybe a regional difference.&amp;nbsp; Are you running EG in English?&amp;nbsp; What locale is your Windows Regional Settings set to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 20:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/408894#M26226</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-10-30T20:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/409036#M26229</link>
      <description>&lt;P&gt;Hi Casey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I either write or copy/paste your code FORMAT gets red... EG is in English. Regional settings on the terminal server that runs EG is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NLS_DATE_FORMAT=DD-MON-RRRR&lt;BR /&gt;NLS_LANG=DANISH_DENMARK.WE8MSWIN1252&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well I will send the issue to SAS Tech Support, Copenhagen and see if they can reproduce it. Its not a big deal - just annoying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx to&amp;nbsp;all of you Fellow SAS Champions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 10:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/409036#M26229</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-10-31T10:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/409064#M26233</link>
      <description>&lt;P&gt;Thanks for trying that out Peter.&amp;nbsp; Yeah, Tech Support is probably the best route, so we can track it in our system.&amp;nbsp; If we find a way to reproduce, we'll certainly investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/409064#M26233</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-10-31T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/411536#M26439</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE: SAS Technical Support Copenhagen, Denmark has just informed me that Global Support was able to reproduce the problem - defect S1378007. It will be taken care of in a future Hotfix for EG 7.15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/411536#M26439</guid>
      <dc:creator>PeterKellberg</dc:creator>
      <dc:date>2017-11-08T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/411546#M26440</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing.&amp;nbsp; I was finally able to reproduce (had to reset my editor settings) in 7.15.&amp;nbsp; I also confirmed it is fixed in 7.15 HF1, which&amp;nbsp;should be available before the end of the year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/411546#M26440</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-11-08T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: FORMAT stmt in red</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/641993#M35896</link>
      <description>&lt;P&gt;Can anyone confirm what hotfix this was fixed in? I am working in Enterprise Guide 7.15 (7.100.5.5850) and I have the same problem except the word 'where' is formatted in red font as an undefined keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 15:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/FORMAT-stmt-in-red/m-p/641993#M35896</guid>
      <dc:creator>DerekD_WF</dc:creator>
      <dc:date>2020-04-22T15:19:04Z</dc:date>
    </item>
  </channel>
</rss>

