<?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: base sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273077#M54390</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68272"&gt;@knveraraju91﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use double quotes in the second LIBNAME&amp;nbsp;statement. Single quotes prevent the resolution of macro variable reference &amp;amp;xptdata.&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2016 17:22:02 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-05-25T17:22:02Z</dc:date>
    <item>
      <title>Running a macro - only last results are present</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273068#M54384</link>
      <description>&lt;P&gt;Dear sir/madam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following Macro to convert SAS data sets to SAS xport files to run open cdisc. At the end I see only last one, in this case the VS. In the transport folder, I see name as &amp;amp;xptdata. rather than name of dataset. &amp;nbsp;Everything else is replaced by previous one. Please help in my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro xpt_sas (xptdata = );
LIBNAME misc 'C:\Users\ss\Desktop/sas';
libname &amp;amp;xptdata. xport 'C:\Users\ss\Desktop/sasx/&amp;amp;xptdata..xpt';
proc copy in=misc out=&amp;amp;xptdata.;
select &amp;amp;xptdata. ;
run;
%mend;&lt;BR /&gt;&lt;BR /&gt;
%xpt_sas (xptdata = AE);
%xpt_sas (xptdata = CM);
%xpt_sas (xptdata = CO);
%xpt_sas (xptdata = DM);
%xpt_sas (xptdata = DS);
%xpt_sas (xptdata = EG);
%xpt_sas (xptdata = EX);
%xpt_sas (xptdata = LB);
%xpt_sas (xptdata = MH);
%xpt_sas (xptdata = SE);
%xpt_sas (xptdata = SUPPAE);
%xpt_sas (xptdata = SUPPCM);
%xpt_sas (xptdata = SUPPDM);
%xpt_sas (xptdata = SUPPDS);
%xpt_sas (xptdata = SUPPEG);
%xpt_sas (xptdata = SUPPEX);
%xpt_sas (xptdata = SUPPLB);
%xpt_sas (xptdata = SUPPVS);
%xpt_sas (xptdata = SV);
%xpt_sas (xptdata = TA);
%xpt_sas (xptdata = TE);
%xpt_sas (xptdata = TS);
%xpt_sas (xptdata = TV);
%xpt_sas (xptdata = VS);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 17:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273068#M54384</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2016-05-25T17:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273077#M54390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68272"&gt;@knveraraju91﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use double quotes in the second LIBNAME&amp;nbsp;statement. Single quotes prevent the resolution of macro variable reference &amp;amp;xptdata.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 17:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273077#M54390</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-25T17:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273083#M54392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68272"&gt;@knveraraju91﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help a great deal if you could add the SAS log of your program execution. I thuink there are some pointers in there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For one I think the forward slashes in the pathname of libname misc could be a typo that throws things off. But the log is very important; make it a habit to always include it if you want someone's help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 17:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-a-macro-only-last-results-are-present/m-p/273083#M54392</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-05-25T17:25:05Z</dc:date>
    </item>
  </channel>
</rss>

