<?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: Hi in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96442#M257750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Larry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here we need to use only macro code no other PROC's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 15:06:11 GMT</pubDate>
    <dc:creator>By_Reddy</dc:creator>
    <dc:date>2012-10-16T15:06:11Z</dc:date>
    <item>
      <title>Hi</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96440#M257748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Question any one can help me please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two libraries&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A) OLD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (oracle)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B) NEW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (other)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OLD library &lt;SPAN class="GRcorrect" id="GRmark_b8cd6469b32c868330bddf105a978773a9516330_i:0"&gt;i&lt;/SPAN&gt; have some 20 datasets...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In NEW library also has &lt;SPAN class="GRcorrect" id="GRmark_a679c14fd8e6c21e3ae451fa08740c79cc53bc27_same amount:0"&gt;same amount&lt;/SPAN&gt; of &lt;SPAN class="GRcorrect" id="GRmark_a679c14fd8e6c21e3ae451fa08740c79cc53bc27_datasets:1"&gt;datasets&lt;/SPAN&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now my task is&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &lt;SPAN class="GRcorrect" id="GRmark_37e51690ecb330005a00ea4920dbcb1533456795_NEW library:0"&gt;NEW library&lt;/SPAN&gt; all datasets will update the data &lt;SPAN class="GRcorrect" id="GRmark_37e51690ecb330005a00ea4920dbcb1533456795_everyday:1"&gt;everyday&lt;/SPAN&gt;...&lt;SPAN class="GRcorrect" id="GRmark_37e51690ecb330005a00ea4920dbcb1533456795_.:2"&gt;.&lt;/SPAN&gt;so &lt;SPAN class="GRcorrect" id="GRmark_37e51690ecb330005a00ea4920dbcb1533456795_i:3"&gt;i&lt;/SPAN&gt; need a code should compare with OLD library datasets....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;macro&lt;/STRONG&gt; code should test all --------&amp;gt; The &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_dataset:0"&gt;dataset&lt;/SPAN&gt; is there or not in &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_library:1"&gt;library&lt;/SPAN&gt;, &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_dataset:2"&gt;dataset&lt;/SPAN&gt; name, &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_veriable:3"&gt;veriable&lt;/SPAN&gt; names same or any change, char, &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_numaric:4"&gt;numaric&lt;/SPAN&gt;, length,...&lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_.:5"&gt;.&lt;/SPAN&gt;and &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_obs:6"&gt;obs&lt;/SPAN&gt; should &amp;gt; 0,...&lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_.:7"&gt;.&lt;/SPAN&gt;then the code will run to other &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_sas:8"&gt;sas&lt;/SPAN&gt; file which has in other location...&lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_.:9"&gt;.&lt;/SPAN&gt;If any of it &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_worng:10"&gt;worng&lt;/SPAN&gt; should get a message where the &lt;SPAN class="GRcorrect" id="GRmark_fd88b7ef609f82c09a028689a9c79679691aa346_worng:11"&gt;worng&lt;/SPAN&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 14:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96440#M257748</guid>
      <dc:creator>By_Reddy</dc:creator>
      <dc:date>2012-10-16T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96441#M257749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An approach to this might be to use the SAS SQL dictionary tables or sashelp views.&amp;nbsp; to do these comparisons..&amp;nbsp; You can find several references to these by searching for&amp;nbsp; " dictionary views site:support.sas.com"&amp;nbsp; For SAS 9.2, these are documented at &lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001385596.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001385596.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use proc compare and the dictionary.tables or sashelp.vtable to check most table/dataset info.&amp;nbsp; Note, you won't be able to directly check obs for database tables.&amp;nbsp; So you may need to build a macro or call execute data step which you feed a list of datasets/tables from these views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use proc compare and the dictionary.columns or sashelp.vcolumn to compare column attributes by table/dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the oracle libname, you will need to make sure tables/views you are using are visible through the libname statment.&amp;nbsp; You may need 'show-synonyms=yes' if you are accessing synonyms/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy coding.&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 14:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96441#M257749</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-10-16T14:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96442#M257750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Larry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here we need to use only macro code no other PROC's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96442#M257750</guid>
      <dc:creator>By_Reddy</dc:creator>
      <dc:date>2012-10-16T15:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96443#M257751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of how you implement the comparisons, these views/tables give you access into metadata about the tables.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can implement the harvesting of this information into macro variables by using either data step or proc sql code to move the data into macro variables for use by your macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/96443#M257751</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-10-16T15:23:26Z</dc:date>
    </item>
  </channel>
</rss>

