<?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: creation of dummy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621701#M182806</link>
    <description>&lt;P&gt;Let me know if this works :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input FirmID year Audit_Year;
cards;
11      1990       .                   
11      1991       .                    
11      1992   1993                
11      1993       .               
11      1994   1995                
11      1995       .                 
11      1996       .               
12      2001       .               
12      2002   2003                
12      2003      .                
12      2004      .                
12     2005       .                
12     2006       .                
12     2007       .                
12     2008       .                
12     2009       .          
;
run;

data want;


 do _n_=1 by 1 until(last.FirmID | brk );
 	set have;
 	by firmid notsorted;
 	if ^missing(Audit_Year) then year_=Audit_Year;
 	
 	if year_=year then brk=1;
 	

 end;

 do _n_=1 to _n_; 
  	set have; 
  	by firmid;

  	if  year_=year then Dummy=1; 
  		else Dummy=0; 
  	output; 
  end; 
 
 
 drop year_ brk;
 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Feb 2020 22:03:36 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2020-02-01T22:03:36Z</dc:date>
    <item>
      <title>creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621357#M182662</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am having a dataset containing firm id, year and audiit_year, and I want to create a dummy (new column) where year is equal to audit_year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FirmID Year Audit_Year &lt;STRONG&gt;Dummy(what I want)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1990&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1991&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp;&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1992&amp;nbsp; &amp;nbsp;1991&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1993&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1994&amp;nbsp; &amp;nbsp;1993&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1995&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; 1996&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2002&amp;nbsp; &amp;nbsp;2001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2003&amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 2004&amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp;2005&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp;2006&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp;2007&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp;2008&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp;2009&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I want to create a new dummy variable, where dummy=1 for the year when it is equal to the audit year (by firm ID).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amanjot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 02:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621357#M182662</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-01-31T02:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621358#M182663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/198822"&gt;@amanjot_42&lt;/a&gt;&amp;nbsp; Plain and straight forward SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input FirmID Year Audit_Year;
cards;
11      1990       .                   0
11      1991       .                   1 
11      1992   1991                0
11      1993       .                   1
11      1994   1993                0
11      1995       .                   0  
11      1996       .                   0
12      2001       .                   1
12      2002   2001                0
12      2003      .                    0
12      2004      .                    0
12     2005       .                    0
12     2006       .                    0
12     2007       .                    0
12     2008       .                    0
12     2009       .                    0
;

proc sql;
create table want as
select a.* ,a.year=b.audit_year as dummy
from have a left join have b
on a.firmid=b.firmid and a.year=b.audit_year
order by a.firmid, a.year;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Or a simple HASH table look up*/
data want ; 
 if _n_=1 then do;
   dcl hash H (dataset:'have(where=(audit_year^=.))') ;
   h.definekey  ("firmid","audit_year") ;
   h.definedone () ;
 end;
 set have;
 dummy=h.check()=0;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Or a simple merge*/
data want;
 merge have have(in=b drop= year rename=audit_year=year where=(year^=.));
 by firmid year;
 dummy=b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 04:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621358#M182663</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-31T04:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621361#M182665</link>
      <description>&lt;P&gt;This problem is a version of mixing two time series (the series of all records, and the (sub)series of non-missing audit_year records).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge have  
        have (keep=firmid audit_year rename=(audit_year=year) where=(year^=.) in=inaudit);
  by firmid year;
  dummy=inaudit;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can strike out everything I said earlier below - overcomplicating the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;In this particular mix you want to&lt;/STRIKE&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRIKE&gt;Read an audit record with non-missing audit_year.&lt;/STRIKE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRIKE&gt;Read and output ALL the records up to the record found in step 1 (i.e. the firmid and year match the firmid and audit_year of step 1). or otherwise up to the end of the data set.&lt;/STRIKE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRIKE&gt;Once the dummy is a 1 (matching firmid's and year=audit_year), go back and get the next audit record.&lt;/STRIKE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;STRIKE&gt;&lt;CODE class=" language-sas"&gt;data have;
input FirmID Year Audit_Year;
cards;
11      1990       .
11      1991       .
11      1992   1991 
11      1993       .
11      1994   1993 
11      1995       .
11      1996       .
12      2001       .
12      2002   2001
12      2003      .
12      2004      .
12     2005       .
12     2006       .
12     2007       .
12     2008       .
12     2009       .
;


data want (drop=_:);
  if eoh1=0 then set have (where=(audit_year^=.) rename=(firmid=_firmid)) end=eoh1;
  else call missing(audit_year);
  _yr=audit_year;

  do until (end_of_have);
    set have end=end_of_have;
    dummy=ifn(year=_yr and firmid=_firmid,1,0);
    output;
    if dummy=1 then leave;
  end;
run;

&lt;/CODE&gt;&lt;/STRIKE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;The "if eoh1 then SET …" statement at the beginning is done to avoid premature stopping of the first SET (and therefore the DATA step), before the second SET has processed all the data.&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 03:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621361#M182665</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-31T03:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621363#M182666</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input FirmID year Audit_Year;
cards;
11      1990       .                   0
11      1991       .                   1 
11      1992   1991                0
11      1993       .                   1
11      1994   1993                0
11      1995       .                   0  
11      1996       .                   0
12      2001       .                   1
12      2002   2001                0
12      2003      .                    0
12      2004      .                    0
12     2005       .                    0
12     2006       .                    0
12     2007       .                    0
12     2008       .                    0
12     2009       .                    0
;
run;

data want;


 do _n_=1 by 1 until(last.FirmID | ^ missing(Audit_Year));
 	set have;
 	by firmid notsorted;
 end;
 year_=Audit_Year;
 
 do _n_=1 to _n_;
 	set have;
 	by firmid;
 	
 	if year=year_ then Dummy=1;
 		else Dummy=0;
 	output;
 end;
 
 drop year_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 03:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621363#M182666</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-01-31T03:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621592#M182738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed, there is another column of audit year which looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="yiv3189631474 yiv3189631474language-sas"&gt;Firm ID  Year    Audit_year        Dummy (what I want)&lt;BR /&gt;11      1990       .                   0
11      1991       .                   0 
11      1992   1993                    0
11      1993       .                   1
11      1994   1995                    0
11      1995       .                   1  
11      1996       .                   0
12      2001       .                   0
12      2002   2003                    0
12      2003      .                    1
12      2004      .                    0
12     2005       .                    0
12     2006       .                    0
12     2007       .                    0
12     2008       .                    0
12     2009       .                    0&lt;BR /&gt;&lt;BR /&gt;In&amp;nbsp;the&amp;nbsp;latter&amp;nbsp;table,&amp;nbsp;audit&amp;nbsp;years&amp;nbsp;are&amp;nbsp;one&amp;nbsp;year&amp;nbsp;ahead&amp;nbsp;of&amp;nbsp;YEAR.&amp;nbsp;Please&amp;nbsp;help&amp;nbsp;with&amp;nbsp;respect&amp;nbsp;to&amp;nbsp;the&amp;nbsp;codes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Amanjot&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;s&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 03:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621592#M182738</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-02-01T03:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621660#M182782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/198822"&gt;@amanjot_42&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the solutions posted by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp; will handle both the scenarios for you . Feel free to change the answer if you think it is appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I like the below solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge have  
        have (keep=firmid audit_year rename=(audit_year=year) where=(year^=.) in=inaudit);
  by firmid year;
  dummy=inaudit;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Feb 2020 18:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621660#M182782</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-02-01T18:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621671#M182791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for getting back,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latter procedures are not working as expected (&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461" target="_blank"&gt;@mkeintz&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205" target="_blank"&gt;@novinosrin&lt;/A&gt;). They are increasing the number of observations (a lot of duplicated records are getting generated). The codes provided by you worked perfectly well with respect to the earlier scenario. Can you please help with the codes for the recent scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amanjot&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 20:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621671#M182791</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-02-01T20:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621701#M182806</link>
      <description>&lt;P&gt;Let me know if this works :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input FirmID year Audit_Year;
cards;
11      1990       .                   
11      1991       .                    
11      1992   1993                
11      1993       .               
11      1994   1995                
11      1995       .                 
11      1996       .               
12      2001       .               
12      2002   2003                
12      2003      .                
12      2004      .                
12     2005       .                
12     2006       .                
12     2007       .                
12     2008       .                
12     2009       .          
;
run;

data want;


 do _n_=1 by 1 until(last.FirmID | brk );
 	set have;
 	by firmid notsorted;
 	if ^missing(Audit_Year) then year_=Audit_Year;
 	
 	if year_=year then brk=1;
 	

 end;

 do _n_=1 to _n_; 
  	set have; 
  	by firmid;

  	if  year_=year then Dummy=1; 
  		else Dummy=0; 
  	output; 
  end; 
 
 
 drop year_ brk;
 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Feb 2020 22:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621701#M182806</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-02-01T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621721#M182814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you so much,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked really well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one more question - for my another analysis (with a similar dataset - but having multiple observations for a particular year, say 3 rows for the year 2006. So, in this case, if I run the same codes for the audit year dummies, then it put 1 for only the first row of 2006. Rest of the two rows are depicting 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help in this regard!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 02:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621721#M182814</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-02-02T02:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621841#M182874</link>
      <description>&lt;P&gt;Please Open a new thread and post some sample data.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 02:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621841#M182874</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-02-03T02:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621863#M182883</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I will do that!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 05:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy/m-p/621863#M182883</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-02-03T05:17:09Z</dc:date>
    </item>
  </channel>
</rss>

