<?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: How to use a date in one observation to reference a value in another observation? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470331#M285628</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 

Data Test;
infile cards truncover;
Input ID Grade SASDate Date1yr;
Informat SASDate date9. Date1yr date9.;
Format SASDate date9. Date1yr date9.;
Datalines;
1 4 01Jan2010 01Jan2011
2 3 01Feb2010 01Feb2011
3 6 01Jan2011 01Jan2012
4 5 01Mar2011 01Mar2012
5 1 01Jan2012 01Jan2013
;
Run;

data want;
if _n_=1 then do;
if 0 then set test(keep=sasdate grade rename=(grade=Grade1yr));
  dcl hash H (dataset:'test(keep=sasdate grade rename=(grade=Grade1yr))') ;
   h.definekey  ("sasdate") ;
   h.definedata ("Grade1yr") ;
   h.definedone () ;
end;
set test;
if h.find(key:Date1yr) ne 0 then call missing(Grade1yr);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jun 2018 14:28:39 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-06-14T14:28:39Z</dc:date>
    <item>
      <title>How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470327#M285626</link>
      <description>&lt;P&gt;Hi SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a date in one observation to reference a matching date in another observation, if the dates match then put the grade value into the first observation. If the date do not match then put a null in that column. It is hard to explain what I am trying to do so I created some sample data to help understand the concept further.&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 Test;
Input ID Grade SASDate Date1yr;
Informat SASDate date9. Date1yr date9.;
Format SASDate date9. Date1yr date9.;
Datalines;
1 4 01Jan2010 01Jan2011
2 3 01Feb2010 01Feb2011
3 6 01Jan2011 01Jan2012
4 5 01Mar2011 01Mar2012&lt;BR /&gt;5 1 01Jan2012 01Jan2013
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(For some reason when I post this, ID 5 is not showing up and is put in ID 4)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally what I would want is to look to see if the Date1yr time is the same as a SASDate on another observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, the data would look like this when we are done.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;Grade&amp;nbsp; &amp;nbsp; Grade1yr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SASDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date1yr&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF6600"&gt;01Jan2011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&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; 01Feb2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Feb2011&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#339966"&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF6600"&gt;01Jan2011&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2012&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&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; 01Mar2011&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01Mar2012&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#339966"&gt;1&lt;/FONT&gt;&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;&lt;FONT color="#339966"&gt; 01Jan2012&amp;nbsp; &amp;nbsp;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; 01Jan2013&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be happy to try to help clarify more if this does not make sense. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470327#M285626</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-06-14T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470329#M285627</link>
      <description>&lt;P&gt;The code here should work.&amp;nbsp; The question arises what would happen if there are more than 1 match of course.&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table want as
  select a.*,
         b.grade as grade1yr
  from   test a
  left join test b
  on     a.sasdate=b.date1yr;
quit;
        &lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470329#M285627</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-14T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470331#M285628</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 

Data Test;
infile cards truncover;
Input ID Grade SASDate Date1yr;
Informat SASDate date9. Date1yr date9.;
Format SASDate date9. Date1yr date9.;
Datalines;
1 4 01Jan2010 01Jan2011
2 3 01Feb2010 01Feb2011
3 6 01Jan2011 01Jan2012
4 5 01Mar2011 01Mar2012
5 1 01Jan2012 01Jan2013
;
Run;

data want;
if _n_=1 then do;
if 0 then set test(keep=sasdate grade rename=(grade=Grade1yr));
  dcl hash H (dataset:'test(keep=sasdate grade rename=(grade=Grade1yr))') ;
   h.definekey  ("sasdate") ;
   h.definedata ("Grade1yr") ;
   h.definedone () ;
end;
set test;
if h.find(key:Date1yr) ne 0 then call missing(Grade1yr);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470331#M285628</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-14T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470341#M285629</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;Thanks this works great and is a very eloquent solution. I just needed to switch it to on a.date1yr =b.sasdate to get it into the format that I need. My actual data is set up so that for each ID, there will be only be one value for each month, but there could be the same month in another ID. This means that my data looks more like this in practice.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;Grade&amp;nbsp; &amp;nbsp; Grade1yr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SASDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date1yr&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;01Jan2011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&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; 01Feb2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Feb2011&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF6600"&gt;01Jan2011&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;01Jan2012&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#008000"&gt;1&amp;nbsp;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#008000"&gt;01Jan2011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#339966"&gt;1&lt;/FONT&gt;&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;&lt;FONT color="#339966"&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;01Jan2011&amp;nbsp;&lt;/FONT&gt; &amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; 01Jan2012&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Would I just need to use some kind of group by statement to get it so that it does it for each ID?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470341#M285629</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-06-14T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470351#M285630</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;Thanks for the reply, that solution also works great! I have not worked with hash tables before so I am having difficulty following what is actually happening. I didn't realize when I originally posed the question that it would be a problem&amp;nbsp;that there are multiples of the same dates in the dataset, but there are not multiples of the same date for each ID. Is there a way to apply this process to each ID.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;Grade&amp;nbsp; &amp;nbsp; Grade1yr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SASDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date1yr&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;01Jan2011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&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; 01Feb2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Feb2011&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF6600"&gt;01Jan2011&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;01Jan2012&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#008000"&gt;1&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01Jan2010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008000"&gt;01Jan2011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#339966"&gt;1&lt;/FONT&gt;&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;&lt;FONT color="#339966"&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;01Jan2011&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; 01Jan2012&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470351#M285630</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-06-14T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470354#M285631</link>
      <description>&lt;P&gt;a small tweak in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;code is what you need. For ethical purpose, I ignored as it's appropriate for you to receive the updated version from him. Anyways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table want as
  select a.*,
         b.grade as grade1yr
  from   test a
  left join test b
  on    a.id =b.id and  a.date1yr=b.sasdate
  order by a.id, sasdate;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470354#M285631</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-14T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470357#M285632</link>
      <description>&lt;P&gt;and the updated hash version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
if _n_=1 then do;
if 0 then set test(keep=id sasdate grade rename=(grade=Grade1yr));
  dcl hash H (dataset:'test(keep=id sasdate grade rename=(grade=Grade1yr))') ;
   h.definekey  ('id',"sasdate") ;
   h.definedata ("Grade1yr") ;
   h.definedone () ;
end;
set test;
if h.find(key:id,key:Date1yr) ne 0 then call missing(Grade1yr);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470357#M285632</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-14T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a date in one observation to reference a value in another observation?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470359#M285633</link>
      <description>&lt;P&gt;Thank you so much for both of these solutions. You have been so helpful and I appreciate everything that you have done!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-date-in-one-observation-to-reference-a-value-in/m-p/470359#M285633</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-06-14T15:56:06Z</dc:date>
    </item>
  </channel>
</rss>

