<?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 convert xpt file into sas file by xpt2loc? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790902#M253253</link>
    <description>&lt;P&gt;The macro processor will ignore strings that are bounded with single quote characters (apostrophes).&lt;/P&gt;
&lt;P&gt;Use double quote characters instead.&lt;/P&gt;
&lt;P&gt;You probably don't need to limit the list of members to extract.&amp;nbsp; If the XPT file only has one member then there is no difference.&amp;nbsp; If it has multiple members then why do you only want one of them?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Root=D:\sdtm\data_xpt;
%xpt2loc(libref=sasfiles, filespec="&amp;amp;root\ae.xpt");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 14:57:53 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-01-19T14:57:53Z</dc:date>
    <item>
      <title>How to convert xpt file into sas file by xpt2loc?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790882#M253245</link>
      <description>&lt;P&gt;sI tried to convert two xpt file called "ae.xpt" and "se.xpt" into sas file called ae and se as well. The original file was saved at "D:\sdtm\data_xpt", and I want the converted sas file to be saved at "D:\sdtm\data_sas".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here was my code, but it didn't work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname sasfiles 'D:\sdtm\data_sas';

%let Root=D:\sdtm\data_xpt;
%xpt2loc(libref=sasfiles, memlist=ae, filespec='&amp;amp;root\ae.xpt');
%xpt2loc(libref=sasfiles, memlist=se, filespec='&amp;amp;root\se.xpt');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How to write the correct one? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790882#M253245</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2022-01-19T13:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xpt file into sas file by xpt2loc?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790889#M253249</link>
      <description>&lt;PRE&gt;libname sasfiles 'D:\sdtm\data_sas' ;
filename x 'D:\sdtm\data_xpt\ae.xpt' ;
%xpt2loc(libref=sasfiles, filespec=x ) &lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790889#M253249</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-19T13:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert xpt file into sas file by xpt2loc?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790902#M253253</link>
      <description>&lt;P&gt;The macro processor will ignore strings that are bounded with single quote characters (apostrophes).&lt;/P&gt;
&lt;P&gt;Use double quote characters instead.&lt;/P&gt;
&lt;P&gt;You probably don't need to limit the list of members to extract.&amp;nbsp; If the XPT file only has one member then there is no difference.&amp;nbsp; If it has multiple members then why do you only want one of them?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Root=D:\sdtm\data_xpt;
%xpt2loc(libref=sasfiles, filespec="&amp;amp;root\ae.xpt");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790902#M253253</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-19T14:57:53Z</dc:date>
    </item>
  </channel>
</rss>

