<?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: Missing values in year function handled differently in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534739#M146787</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;you can reproduce it by setting the option for missing to be " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know just chaning the global value of missing is not something you just do, but I want to know how to do it for my own understanding.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course, when i set the option missing to be " ", the issue is reproducible, what meant, that in a default setup EG does not show missing numerics as blanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such options can be changed in autoexec_usermods.sas in the configuration directory of SASApp. BUT Enterprise Guide changes some options on startup, e.g. fmterr to nofmterr.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 07:34:58 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-02-12T07:34:58Z</dc:date>
    <item>
      <title>Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534729#M146779</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following coding:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.aa1;
	start_dat = .;
	start_year=put(year(start_dat),4.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run it via Enterprise Guide it returns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output via EG" style="width: 229px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27078i5154F455AFE2D801/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-12 07_37_49-Window.jpg" alt="Output via EG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output via EG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I run it in Batch it returns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output via Batch" style="width: 346px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27080iCDFB775341B679E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-12 07_38_49-Window.jpg" alt="Output via Batch" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output via Batch&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If the date value is non missing it works as expected in both, but when the date value is missing the above happens and I have a problem with that. Now of course I could replace the periods with blanks in an extra step or check for missing values but I'm wondering if there is an option I could set so that both environments run the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm on SAS 9.4M2, EG 7.1 and SAS is running on AIX 7.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advanced for your time and kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534729#M146779</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-02-12T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534731#M146780</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing = ' ';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534731#M146780</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-12T06:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534732#M146781</link>
      <description>&lt;P&gt;Okay after some additional searching I found the option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=' ';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to change my questions sligthly where can I set that option globaly for EG and SAS Base?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534732#M146781</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-02-12T06:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534733#M146782</link>
      <description>Thank you for the quick response. Could you please tell me where I can set that option for all sessions?</description>
      <pubDate>Tue, 12 Feb 2019 06:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534733#M146782</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-02-12T06:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534735#M146783</link>
      <description>&lt;P&gt;I can't reproduce the result you showed for Enterprise Guide. When i execute the code you provided, i get:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="missing_different.PNG" style="width: 219px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27081i528317316E36FBD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="missing_different.PNG" alt="missing_different.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing the appearance of missing numerics for the whole system, sound like a bad idea. Users expect to see a dot, when a numeric variable is missing.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534735#M146783</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-12T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534738#M146786</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;you can reproduce it by setting the option for missing to be " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know just chaning the global value of missing is not something you just do, but I want to know how to do it for my own understanding.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534738#M146786</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-02-12T07:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534739#M146787</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;you can reproduce it by setting the option for missing to be " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know just chaning the global value of missing is not something you just do, but I want to know how to do it for my own understanding.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course, when i set the option missing to be " ", the issue is reproducible, what meant, that in a default setup EG does not show missing numerics as blanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such options can be changed in autoexec_usermods.sas in the configuration directory of SASApp. BUT Enterprise Guide changes some options on startup, e.g. fmterr to nofmterr.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534739#M146787</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-12T07:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534740#M146788</link>
      <description>If you don't want to update missing value for whole system then you can use coalesce function.</description>
      <pubDate>Tue, 12 Feb 2019 07:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534740#M146788</guid>
      <dc:creator>akash1088</dc:creator>
      <dc:date>2019-02-12T07:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534741#M146789</link>
      <description>&lt;P&gt;The best place would be in your SAS App server AUTOEXEC_USERMODS.SAS program&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534741#M146789</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-12T07:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534745#M146791</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for the quick response. Could you please tell me where I can set that option for all sessions?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First of all, it is a bad idea to globally set options missing to something other than the default value. People who work with SAS expect default behaviour, and set non-default behaviour locally on demand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in your case, I would go hunting for the options missing statement that changes the behaviour of your workspace server, and remove it. It should be used only in the code where you need blanks to be shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Places to look at:&lt;/P&gt;
&lt;P&gt;autoexec_usermods.sas files (SASApp and SASApp/WorkspaceServer) in your configuration tree&lt;/P&gt;
&lt;P&gt;code sent from EG when a server session starts&lt;/P&gt;
&lt;P&gt;code sent from EG when a task node is executed&lt;/P&gt;
&lt;P&gt;code sent from EG when a code node is executed&lt;/P&gt;
&lt;P&gt;Autoexec process flow in your EG project&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534745#M146791</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-12T08:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in year function handled differently</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534746#M146792</link>
      <description>Thanks the autoexec_usermods.sas was exactly the place where the option was set differently.</description>
      <pubDate>Tue, 12 Feb 2019 08:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-in-year-function-handled-differently/m-p/534746#M146792</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-02-12T08:25:58Z</dc:date>
    </item>
  </channel>
</rss>

