<?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 write a macro code for this in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-a-macro-code-for-this/m-p/893866#M353111</link>
    <description>&lt;P&gt;First step in creating a macro is always to get the code to work for two iterations, in this case two schemas, without macros and without macro variables. It looks like you have errors in the code you show which must be fixed first; it looks like you haven't yet got the code working for two (or more) schemas. Once that is working, show us the code and we can help further.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 18:58:31 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-09-12T18:58:31Z</dc:date>
    <item>
      <title>How to write a macro code for this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-a-macro-code-for-this/m-p/893853#M353106</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname s_ice hadoop server='gb234" schema="rst_s_ice__production";

proc sql;
create table tablelist as select MEMNAME as table_list from dictionary.tables where libname="S_ICE";
quit;

%let folder=/sas/output/
filename outf "&amp;amp;folder.tablelist.xlsx";
proc export data=tablelist outfile=outf dbms=xlsx replace; sheet='rst_s_ice__production';
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have to get list of table names in differnrt schemas in hadoop.I need help in modifying the given code with the help of macro to get the list of table names in different schemas such as rst_hvgrp_prod,&lt;BR /&gt;rst_pfm_mrt_prod,rst_rpt_sum_prod and export it to one excel with each sheet for one schema.sheet name must be same as&amp;nbsp;schema_name&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 17:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-a-macro-code-for-this/m-p/893853#M353106</guid>
      <dc:creator>Sathya3</dc:creator>
      <dc:date>2023-09-12T17:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a macro code for this</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-write-a-macro-code-for-this/m-p/893866#M353111</link>
      <description>&lt;P&gt;First step in creating a macro is always to get the code to work for two iterations, in this case two schemas, without macros and without macro variables. It looks like you have errors in the code you show which must be fixed first; it looks like you haven't yet got the code working for two (or more) schemas. Once that is working, show us the code and we can help further.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-write-a-macro-code-for-this/m-p/893866#M353111</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-12T18:58:31Z</dc:date>
    </item>
  </channel>
</rss>

