<?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: Print multiple datasets with same datasets name and different libraries in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472035#M120973</link>
    <description>&lt;P&gt;Do you just need to "print" them?&amp;nbsp; If so you can use:&lt;/P&gt;
&lt;PRE&gt;proc report data=in1.test1 nowd;
  columns _all_;
run;&lt;/PRE&gt;
&lt;P&gt;The _all_ will use all available columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to do something more complicated, then you would consult the metadata tables, e.g. this would get you all variables found in both library in1 and 2, and datasets test1 and 2:&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vcolumn (where=(libname in ("IN1","IN2") and memname in ("TEST1","TEST2")));
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Jun 2018 10:44:32 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-06-21T10:44:32Z</dc:date>
    <item>
      <title>Print multiple datasets with same datasets name and different libraries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472030#M120972</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two libraries named in1 &amp;amp; in2 both consist the datasets with same naming convention .For eg: test1 &amp;amp; test1&lt;/P&gt;&lt;P&gt;i.e in1.test1 &amp;amp; in2.test1.&lt;/P&gt;&lt;P&gt;Though the naming convention is same fields inside the datasets may or may not differ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose I have added two fields named age and place in the source file. and they will reflect in both the datasets with same or different values ,because they might be separated on basis of key identifiers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me how to find the values for added fields w.r.t to library in the same sas program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472030#M120972</guid>
      <dc:creator>niteshbharadwaj</dc:creator>
      <dc:date>2018-06-21T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple datasets with same datasets name and different libraries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472035#M120973</link>
      <description>&lt;P&gt;Do you just need to "print" them?&amp;nbsp; If so you can use:&lt;/P&gt;
&lt;PRE&gt;proc report data=in1.test1 nowd;
  columns _all_;
run;&lt;/PRE&gt;
&lt;P&gt;The _all_ will use all available columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to do something more complicated, then you would consult the metadata tables, e.g. this would get you all variables found in both library in1 and 2, and datasets test1 and 2:&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vcolumn (where=(libname in ("IN1","IN2") and memname in ("TEST1","TEST2")));
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472035#M120973</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-21T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple datasets with same datasets name and different libraries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472116#M120995</link>
      <description>&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc print data=&amp;lt;any valid data set name&amp;gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will print the entire data set, all values all rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you need to show by concrete example what you mean for output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have created a data set the only way to tell "new" variables, if this is the core of your question and not printing, then you would have to preserve a list of variables from the "old" data set.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-multiple-datasets-with-same-datasets-name-and-different/m-p/472116#M120995</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-21T14:44:12Z</dc:date>
    </item>
  </channel>
</rss>

