<?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 add data in randomly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496505#M131339</link>
    <description>Thank you&lt;BR /&gt;Sathwik</description>
    <pubDate>Tue, 18 Sep 2018 09:36:08 GMT</pubDate>
    <dc:creator>sathwik</dc:creator>
    <dc:date>2018-09-18T09:36:08Z</dc:date>
    <item>
      <title>How to add data in randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496480#M131323</link>
      <description>&lt;P&gt;I had some random data in that data i want to add some data in between that already existed data by using under EmpID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Examplex;
	input EmpID $ Name $ Designee $ 27-39 Department $;
	datalines;
		101		Madhu     Jr Associate    QA
		103		Sathwik   Jr Associate    PB
		104		Mohan     Manager         PB
		106		Raja      Manager         QA
		107		Kiran     Manager         BR
		108		Sainath   Manager         CL
		;
run;

proc print data = Examplex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to add data which is given below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;102		Satya	Sr Associate	PB
105		Sai		Trinee			BR
109		Surya	Manager			CL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm expecting this out put.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="jfvnj.jpg" style="width: 345px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23339iCD036A4F21C76A5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="jfvnj.jpg" alt="jfvnj.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Sathwik&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;</description>
      <pubDate>Tue, 18 Sep 2018 07:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496480#M131323</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-18T07:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data in randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496490#M131329</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Examplex;
	input EmpID $ Name $ Designee $ 27-39 Department $;
	datalines;
		101		Madhu     Jr Associate    QA
		103		Sathwik   Jr Associate    PB
		104		Mohan     Manager         PB
		106		Raja      Manager         QA
		107		Kiran     Manager         BR
		108		Sainath   Manager         CL
		;
run;

data new;
	input EmpID $ Name $ Designee $ 27-39 Department $;
	datalines;
        102     Satya     Sr Associate    PB
        105     Sai       Trinee          BR
        109     Surya     Manager         CL
        ;
run;

data want;
    merge Examplex new;
    by EmpID;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 08:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496490#M131329</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-18T08:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data in randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496501#M131336</link>
      <description>Suppose without any "Emp ID" how to put data at particular possession</description>
      <pubDate>Tue, 18 Sep 2018 09:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496501#M131336</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-18T09:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data in randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496503#M131337</link>
      <description>&lt;P&gt;If by position, you mean row number, you can use _N_ to get the currently processed row index&lt;/P&gt;
&lt;P&gt;and, when the condition is met, read data from your alternate dataset :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set Examplex;
    output;

    if _N_=5 then do until(eof);
        set new end=eof;
        output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496503#M131337</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-18T09:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data in randomly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496505#M131339</link>
      <description>Thank you&lt;BR /&gt;Sathwik</description>
      <pubDate>Tue, 18 Sep 2018 09:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-data-in-randomly/m-p/496505#M131339</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-18T09:36:08Z</dc:date>
    </item>
  </channel>
</rss>

