<?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 Request on the usage of .z in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692825#M211140</link>
    <description>&lt;P&gt;Hi, wanted to inquire for some explanation on the usage of .z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have interacted with its usage as shown in the code;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lb1;
   length charval $200;
  set lb;
  if lborres &amp;gt;.z then do;
    charval=put(lborress,best.);
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2020 11:44:02 GMT</pubDate>
    <dc:creator>himself</dc:creator>
    <dc:date>2020-10-20T11:44:02Z</dc:date>
    <item>
      <title>Request on the usage of .z</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692825#M211140</link>
      <description>&lt;P&gt;Hi, wanted to inquire for some explanation on the usage of .z&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have interacted with its usage as shown in the code;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lb1;
   length charval $200;
  set lb;
  if lborres &amp;gt;.z then do;
    charval=put(lborress,best.);
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 11:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692825#M211140</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2020-10-20T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Request on the usage of .z</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692828#M211143</link>
      <description>&lt;P&gt;.a to .z are "special" missing values. Although they all act like "normal" missing values in calculations, they do have an order, with .z being the "greatest", so .z is greater than .a or .&lt;/P&gt;
&lt;P&gt;Using .z as the cutoff value makes sure that any "special" missing values can't make their way into the calculation:&lt;/P&gt;
&lt;P&gt;See&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x1;
datalines;
.
.q
100
;

data want;
set have;
if x1 &amp;gt; . then x2 = 1 / x1;
if x1 &amp;gt; .z then x3 = 1 / x1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt; 73         data have;
 74         input x1;
 75         datalines;
 
 NOTE: The data set WORK.HAVE has 3 observations and 1 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 79         ;
 80         
 81         data want;
 82         set have;
 83         if x1 &amp;gt; . then x2 = 1 / x1;
 84         if x1 &amp;gt; .z then x3 = 1 / x1;
 85         run;
 
 NOTE: Missing values were generated as a result of performing an operation on missing values.
       Each place is given by: (Number of times) at (Line):(Column).
       1 bei 83:23   
 NOTE: There were 3 observations read from the data set WORK.HAVE.
 NOTE: The data set WORK.WANT has 3 observations and 3 variables.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692828#M211143</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-20T12:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Request on the usage of .z</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692846#M211156</link>
      <description>&lt;P&gt;In other words: For a numeric variable &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; the condition&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x&amp;gt;.z&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is a short way of checking for a &lt;EM&gt;non-missing&lt;/EM&gt; value. This can also be coded in various other equivalent ways, e.g.,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;not missing(x)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;n(x)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Only in the absence of special missing values &lt;FONT face="courier new,courier"&gt;.a&lt;/FONT&gt;, ...,&lt;FONT face="courier new,courier"&gt;.z&lt;/FONT&gt;&amp;nbsp;the condition&amp;nbsp;&lt;FONT face="courier new,courier"&gt;x&amp;gt;.&lt;/FONT&gt; would be equivalent too, so &lt;FONT face="courier new,courier"&gt;x&amp;gt;.z&lt;/FONT&gt; is safer than that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 13:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692846#M211156</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-10-20T13:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Request on the usage of .z</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692865#M211163</link>
      <description>Thanks so so much &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;,  for the reply and for the example  provided,I now understand how this works. Many thanks</description>
      <pubDate>Tue, 20 Oct 2020 13:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692865#M211163</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2020-10-20T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Request on the usage of .z</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692866#M211164</link>
      <description>Thanks so so much @ FreelanceReinhard, for the response</description>
      <pubDate>Tue, 20 Oct 2020 13:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Request-on-the-usage-of-z/m-p/692866#M211164</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2020-10-20T13:38:53Z</dc:date>
    </item>
  </channel>
</rss>

