<?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: Copy cell to another cell (different row) - SAS Language in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261075#M50731</link>
    <description>&lt;P&gt;Thank you for your answer, I am going to check how I can use it but I don't think it will work for me, in my dataset I have actually 50 columns and 50 "Name" with a lot of missing values and "Name" not existing under some sources.&lt;/P&gt;&lt;P&gt;I really need a code which allow me to select a specific data from a specific variable and to paste it in an other variable with a specific "Name".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doens't seem to me it is possible with this code but maybe I misundertood it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 13:29:17 GMT</pubDate>
    <dc:creator>interng15</dc:creator>
    <dc:date>2016-04-04T13:29:17Z</dc:date>
    <item>
      <title>Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261045#M50720</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I think I have a quite easy problem I cannot solve due to my lack of knowledge of SAS language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I've a dataset as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Year&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;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gt;&lt;TD&gt;&lt;P&gt;-2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;John&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2002&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Y&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2002&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;X&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;5&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2002&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Y&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;8&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I whish to do is:&lt;/P&gt;&lt;P&gt;if (Name) = Jack and (Source)= X, to copy according to the (Year) the values from (File)&lt;/P&gt;&lt;P&gt;into (Paper) where (Name) = John , (Source) =&amp;nbsp; X and (Year) are identical to the one from the row of the selected data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I am clear enough, to sum up I want to fill the blank cells from Paper coresponding to John with the value from File from Jack when Source and Year are identical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, I am looking for this code for two days and don't succed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261045#M50720</guid>
      <dc:creator>interng15</dc:creator>
      <dc:date>2016-04-04T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261047#M50721</link>
      <description>&lt;P&gt;Does the dataset adhere to that structure all the way through?&lt;/P&gt;
&lt;P&gt;(for every name/year, there's always a X and a Y)&lt;/P&gt;
&lt;P&gt;If so, then&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by year source name;
run;
* Now we always have a succession of Jack/John for every year and source;

data want;
set have;
oldfile = lag(file); * get value from preceding observation;
if paper = . and name = 'John' then paper = oldfile;
* if paper and file are character variables, compare with empty string;
drop oldfile;
run;

* restore original order;
proc sort data=want;
by year descending name source;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261047#M50721</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-04T11:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261049#M50722</link>
      <description>&lt;P&gt;You could also do it as a join + coalesce() function (not tested below - post data as a datastep):&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table WANT as
  select  A.NAME,
          A.YEAR,
          A.SOURCE,
          A.FILE,
          COALESCE(A.PAPER,B.FILE) as PAPER  /* this is so if paper already exists use that, otherwise the merged value */
  from    HAVE A
  left join (select * from HAVE where NAME="Jack" and SOURCE="X") B
  on      A.NAME=B.NAME
  and     A.YEAR=B.YEAR;
quit;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261049#M50722</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-04T11:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261064#M50728</link>
      <description>&lt;P&gt;Thank you for your answer but no, the dataset doesn't adhere to that structure all the way through, it l be more like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Year&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Source&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;File&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Paper&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;John&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;X&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-4&lt;/P&gt;&lt;/TD&gt;&lt;T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t;&lt;TD&gt;&lt;P&gt;2002&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;X&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;5&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2002&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Y&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;8&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot use the lag function for the entire dataset, what I need is more a code where I can really select the cell corresponding to my code&lt;/P&gt;&lt;P&gt;(ex: copy File where Year=2000 and Name=Jack and Source=X;&lt;/P&gt;&lt;P&gt;paste in Paper when Name=John and Source=X and Year=2000)&lt;/P&gt;&lt;P&gt;if possible with a code allowing me not to enter all the years (I ve more than 50) but stating if Year is identical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if I am not so clear, I am not so familiar with SAS programming.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261064#M50728</guid>
      <dc:creator>interng15</dc:creator>
      <dc:date>2016-04-04T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261074#M50730</link>
      <description>&lt;P&gt;Then I suggest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- sort your dataset in a way that a source observation will always be encountered before a possible target observation&lt;/P&gt;
&lt;P&gt;- use RETAIN to define (a) helper variable(s) to keep values across observations&lt;/P&gt;
&lt;P&gt;- use a condition according to your rules to identify a source observation and assign the values to the retain variable(s)&lt;/P&gt;
&lt;P&gt;- use another condition to identify the target observation(s) where variable(s) need to be set from the retained helper variable(s)&lt;/P&gt;
&lt;P&gt;- use first. conditions to reset the retain variable(s) when a group change occurs&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261074#M50730</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-04T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261075#M50731</link>
      <description>&lt;P&gt;Thank you for your answer, I am going to check how I can use it but I don't think it will work for me, in my dataset I have actually 50 columns and 50 "Name" with a lot of missing values and "Name" not existing under some sources.&lt;/P&gt;&lt;P&gt;I really need a code which allow me to select a specific data from a specific variable and to paste it in an other variable with a specific "Name".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doens't seem to me it is possible with this code but maybe I misundertood it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261075#M50731</guid>
      <dc:creator>interng15</dc:creator>
      <dc:date>2016-04-04T13:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261080#M50733</link>
      <description>&lt;P&gt;We can only answer the question as you provide it here. &amp;nbsp;If your question does not match your requirement, nor will the solution. &amp;nbsp;Post some test data - which matches what you have (just a few lines, as a datastep) - and what you want your output to look like. &amp;nbsp;If you have that many columns then there are several approaches you could take, my first idea would be to normalise your data, but you may be able to use arrays. &amp;nbsp;But this is guessing without seeing.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261080#M50733</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-04T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy cell to another cell (different row) - SAS Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261102#M50741</link>
      <description>&lt;P&gt;If your rules are hardcoded, then it can't be automated. If the rules can be generalized then it can be automated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you're saying your rules are hardcoded. If so then you may as well write a whole bunch of if statements.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-cell-to-another-cell-different-row-SAS-Language/m-p/261102#M50741</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-04T14:38:42Z</dc:date>
    </item>
  </channel>
</rss>

