<?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 create table by calling another table data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494429#M130284</link>
    <description>Thank you&lt;BR /&gt;sathwik</description>
    <pubDate>Tue, 11 Sep 2018 09:32:49 GMT</pubDate>
    <dc:creator>sathwik</dc:creator>
    <dc:date>2018-09-11T09:32:49Z</dc:date>
    <item>
      <title>How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494417#M130273</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.jpg" style="width: 278px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23178iDB7BB23172C5AF36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Examplex;
	input Name $ 9-19 Designee $ 20-32  Department $;
	datalines;
		Madhu      Jr_Associate  QA
		Sathwik    Jr_Associate  PB
		Mohan      Manager       PB
		Raja       Manager       QA
		Kiran      Manager       BR
		Sainath    Manager       CL
		;
run;

proc print data = Examplex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I had table which is given in Photo and Program. By using this table i want create new table by taking two observations in that given table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 08:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494417#M130273</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-11T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494418#M130274</link>
      <description>&lt;P&gt;Do stop putting datalines indented.&amp;nbsp; SAS reads data from position 1.&lt;/P&gt;
&lt;P&gt;For this "&lt;SPAN&gt;By using this table i want create new table by taking two observations in that given table. " - you will need to clarify, do you want the first two observations, some random two?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 08:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494418#M130274</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-11T08:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494420#M130276</link>
      <description>some random two observations</description>
      <pubDate>Tue, 11 Sep 2018 08:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494420#M130276</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-11T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494421#M130277</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=Examplex out=want noprint
     seed=1234 method=srs
     sampsize=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494421#M130277</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-09-11T09:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494425#M130280</link>
      <description>When i need particular 2 and 5 observations at that time which code we need</description>
      <pubDate>Tue, 11 Sep 2018 09:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494425#M130280</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-11T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494426#M130281</link>
      <description>&lt;P&gt;Which is it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;some random two observations"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"When i need particular 2 and 5 observations"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you know the two observations then you where clause it for that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  if _n_ in (2,5);
run;
proc print data=want;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;For positional, or you could change the where to be the values from those rows.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494426#M130281</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-11T09:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create table by calling another table data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494429#M130284</link>
      <description>Thank you&lt;BR /&gt;sathwik</description>
      <pubDate>Tue, 11 Sep 2018 09:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-table-by-calling-another-table-data/m-p/494429#M130284</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-11T09:32:49Z</dc:date>
    </item>
  </channel>
</rss>

