<?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: What this statement means: column1 in (.,.M,.N,.I)) then column1=9 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784501#M250367</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;P class="xisDoc-paragraph"&gt;The SAS language has 28 symbols that are used to represent special numerical values :&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;DIV class="xisDoc-listUnordered"&gt;
&lt;UL class="xisDoc-listUnordered" type="disc"&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;The symbol &lt;CODE class="noProcess"&gt;.&lt;/CODE&gt; represents a generic missing value.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;Some applications use &lt;CODE class="noProcess"&gt;.I&lt;/CODE&gt; to represent positive infinity and use &lt;CODE class="noProcess"&gt;&lt;A target="_blank" name="~1"&gt;&lt;/A&gt;&lt;FONT&gt;.M&lt;/FONT&gt;&lt;/CODE&gt; to represent negative infinity.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;.N ??&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;DIV class="xisDoc-listUnordered"&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;[EDIT] :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SAS/IML® 15.2 User's Guide&lt;BR /&gt;Calling Functions in the R Language&lt;BR /&gt;Special Numeric Values&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/imlug/15.2/imlug_r_sect019.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/imlug/15.2/imlug_r_sect019.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 / Viya 3.5&lt;BR /&gt;SAS Language Reference: Concepts&lt;BR /&gt;Creating Special Missing Values&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/p1xr9fm7y8kek5n1hpj008tnu1a1.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/p1xr9fm7y8kek5n1hpj008tnu1a1.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Dec 2021 10:54:23 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-12-07T10:54:23Z</dc:date>
    <item>
      <title>What this statement means: column1 in (.,.M,.N,.I)) then column1=9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784496#M250366</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I do not understand the parameters inside the operator in. Please see a data step "temp4" below.&lt;/P&gt;&lt;P&gt;if (st11q01 in (.,.M,.N,.I)) then st11q01=9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (st11q02 in (.,.M,.N,.I)) then st11q02=9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (st11q03 in (.,.M,.N,.I)) then st11q03=9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;st11q01, st11q02 and st11q03 are the birth variables of the student, mother and father. The valid codes for these variables are:&lt;/P&gt;&lt;P&gt;1: Country of test&lt;/P&gt;&lt;P&gt;2: Other Country&lt;/P&gt;&lt;P&gt;7: N/A&lt;/P&gt;&lt;P&gt;8: Invalid&lt;/P&gt;&lt;P&gt;9: Missing&lt;/P&gt;&lt;P&gt;Does anyone in the forum know how to interpret inside the parenthesis?&lt;/P&gt;&lt;P&gt;I think the first delimiter, the dot, is to ask if it is null. is it so? But, M, N, I ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Book: PISA Data Analysis Manual, SAS, second edition, 2009&lt;/P&gt;&lt;P&gt;chapter 15: Multilevel model&lt;/P&gt;&lt;P&gt;Thanks. More information on:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.oecd-ilibrary.org/docserver/9789264056251-16-en.pdf?expires=1638869672&amp;amp;id=id&amp;amp;accname=guest&amp;amp;checksum=BB2AD4A6835D5610A832BC248732A1F9" target="_blank" rel="noopener"&gt;https://www.oecd-ilibrary.org/docserver/9789264056251-16-en.pdf?expires=1638869672&amp;amp;id=id&amp;amp;accname=guest&amp;amp;checksum=BB2AD4A6835D5610A832BC248732A1F9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;page 9&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data temp4;
 set  Belgica2006;
 /*if (cnt="BEL");*/
 if (st01Q01 not in (7,8,9,10,11,12,13,14)) then st01Q01=.;
 gender=.;
 if (st04q01 in (1)) then gender=1;
 if (st04q01 in (2)) then gender=0;
  
 if (st11q01 in (.,.M,.N,.I)) then st11q01=9;
 if (st11q02 in (.,.M,.N,.I)) then st11q02=9;
 if (st11q03 in (.,.M,.N,.I)) then st11q03=9;

 immig=(100*st11q01)+(10*st11q02)+(st11q03);
img=.;
 if (immig in (111,121,112)) then img=0;
 if (immig in (122,222)) then img=1;
 vocation=.;
 if (iscedo in (1)) then vocation=0;
 if (iscedo in (2,3)) then vocation=1;
 nbmis=0;
 array vecmis (5) vocation st04q01 st01Q01 escs img;
 do i=1 to 5;
 if (vecmis(i) in (.,.N,.I,.M)) then nbmis=nbmis+1;
 end;
if (nbmis=0);
 scie1=pv1scie;
 scie2=pv2scie;
 scie3=pv3scie;
 scie4=pv4scie;
 scie5=pv5scie;
 w_fstr0=w_fstuwt;
 keep CNT SCHOOLID stidstd
scie1-scie5  w_fstr0-w_fstr80
vocation gender st01Q01 escs img;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 10:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784496#M250366</guid>
      <dc:creator>rojouno</dc:creator>
      <dc:date>2021-12-07T10:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: What this statement means: column1 in (.,.M,.N,.I)) then column1=9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784501#M250367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;P class="xisDoc-paragraph"&gt;The SAS language has 28 symbols that are used to represent special numerical values :&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;DIV class="xisDoc-listUnordered"&gt;
&lt;UL class="xisDoc-listUnordered" type="disc"&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;The symbol &lt;CODE class="noProcess"&gt;.&lt;/CODE&gt; represents a generic missing value.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;Some applications use &lt;CODE class="noProcess"&gt;.I&lt;/CODE&gt; to represent positive infinity and use &lt;CODE class="noProcess"&gt;&lt;A target="_blank" name="~1"&gt;&lt;/A&gt;&lt;FONT&gt;.M&lt;/FONT&gt;&lt;/CODE&gt; to represent negative infinity.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;.N ??&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="imlug_r000386" class="aa-section"&gt;
&lt;DIV class="xisDoc-listUnordered"&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;[EDIT] :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SAS/IML® 15.2 User's Guide&lt;BR /&gt;Calling Functions in the R Language&lt;BR /&gt;Special Numeric Values&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/imlug/15.2/imlug_r_sect019.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/imlug/15.2/imlug_r_sect019.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 / Viya 3.5&lt;BR /&gt;SAS Language Reference: Concepts&lt;BR /&gt;Creating Special Missing Values&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/p1xr9fm7y8kek5n1hpj008tnu1a1.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/p1xr9fm7y8kek5n1hpj008tnu1a1.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Dec 2021 10:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784501#M250367</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-12-07T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: What this statement means: column1 in (.,.M,.N,.I)) then column1=9</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784504#M250369</link>
      <description>Thanks, I understood, Walter</description>
      <pubDate>Tue, 07 Dec 2021 10:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-statement-means-column1-in-M-N-I-then-column1-9/m-p/784504#M250369</guid>
      <dc:creator>rojouno</dc:creator>
      <dc:date>2021-12-07T10:57:26Z</dc:date>
    </item>
  </channel>
</rss>

