<?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 create .XPT files? How to Convert .xpt files to Sas Dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90429#M25840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you SGB!!!!!&lt;/P&gt;&lt;P&gt;I know how to do by single .XPT file, But i want to know instead of passing single .XPT file , by using array or something else to pick all the .XPT files from the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you Reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2012 13:49:05 GMT</pubDate>
    <dc:creator>sam369</dc:creator>
    <dc:date>2012-08-13T13:49:05Z</dc:date>
    <item>
      <title>How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90427#M25838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data library . in this library i have 20 dataset. so i need to convert them in to .xpt files? how can i do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 15 .xpt files .so need to convert them into sas dataset files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody explain with example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 19:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90427#M25838</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2012-08-10T19:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90428#M25839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="left"&gt;You can use PROC COPY with XPORT to do this. You can also use PROC CPORT.&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;libname sasfile 'c:\documents\mylib';&lt;/P&gt;&lt;P align="left"&gt;libname xptfile XPORT 'c:\documents\file1.xpt';&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;proc copy in = sasfile out = xptfile;&lt;/P&gt;&lt;P align="left"&gt;select file1;&lt;/P&gt;&lt;P align="left"&gt;run;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;SGB&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 21:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90428#M25839</guid>
      <dc:creator>SGB</dc:creator>
      <dc:date>2012-08-10T21:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90429#M25840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you SGB!!!!!&lt;/P&gt;&lt;P&gt;I know how to do by single .XPT file, But i want to know instead of passing single .XPT file , by using array or something else to pick all the .XPT files from the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you Reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90429#M25840</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2012-08-13T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90430#M25841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is probably an easier, more direct way to do what you want, but you can always simply build and run an include file substituting the desired information where needed.&amp;nbsp; e.g.,:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let path=c:;&lt;/P&gt;&lt;P&gt;filename indata pipe "dir &amp;amp;path.\*.sas7bdat /b";&lt;/P&gt;&lt;P&gt;filename code2run temp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length fil2xpt xpt2xpt $420;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile indata truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file code2run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Read the filenames identified by your system's&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* directory command&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat filenm $100.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input filenm &amp;amp;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* The following statement concatenates &amp;amp;path with each&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; fil2xpt=scan(filenm,1,".");&lt;/P&gt;&lt;P&gt;&amp;nbsp; xpt2xpt=cats("libname xptfile xport '&amp;amp;path.\",fil2xpt,".xpt';");&lt;/P&gt;&lt;P&gt;&amp;nbsp; put "libname sasfile '&amp;amp;path.';";&lt;/P&gt;&lt;P&gt;&amp;nbsp; put xpt2xpt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'proc copy in = sasfile out = xptfile;';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'select ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put fil2xpt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '; run;';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'libname sasfile clear;';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'libname xptfile clear;';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'run;';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include code2run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 16:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90430#M25841</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-13T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90431#M25842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!!!!&lt;BR /&gt;But i was bit confused with "code2run"? got you able to explain me !! i will be helpful!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 15:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90431#M25842</guid>
      <dc:creator>sam369</dc:creator>
      <dc:date>2012-08-14T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90432#M25843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest explanation would be for you to have SAS write the code out to a permanent file so that you can see what was actually produced by the code.&amp;nbsp; You can do that by simply changing the filename statement from:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;filename code2run temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;to something like: filename code2run "c:\code2run.sas";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Assuming you are on windows, the code uses the dir command to create a file that lists all of your datasets that reside in the specified directory.&amp;nbsp; Then, for each one, it writes out the proc copy command, filling in all of the needed file and directory names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Art&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 15:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/90432#M25843</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-14T15:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How To create .XPT files? How to Convert .xpt files to Sas Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/248305#M56399</link>
      <description>&lt;P&gt;I have been using the PROC COPY method to create sas v5 XPT transport files for years to transfer data to the FDA. &amp;nbsp;It has recently been pointed out the the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/techsup/technote/ts140.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/ts140.pdf&lt;/A&gt;&amp;nbsp; tech notes for this format state that the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INTRODUCTION&lt;BR /&gt;All transport data set records are 80 bytes in length. If there is not sufficient&lt;BR /&gt;data to reach 80 bytes, then a record is padded with ASCII blanks to 80 bytes. All&lt;BR /&gt;character data are stored in ASCII, regardless of the operating system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working in a SAS environment with wlatin1 encoding and often my data contains characters that are not part of the ascii character set. &amp;nbsp;When I create my XPT files with the PROC COPY method described in this thread I get SAS v5 XPT files but these files still contain my wlatin1 encoding. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that the SAS logic to create a SAS v5 XPT files creates files that are not fully compliant with their own technotes or am I misunderstanding something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for hte responses.&lt;/P&gt;&lt;P&gt;KL&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-create-XPT-files-How-to-Convert-xpt-files-to-Sas-Dataset/m-p/248305#M56399</guid>
      <dc:creator>LetourneauKent</dc:creator>
      <dc:date>2016-02-05T16:20:33Z</dc:date>
    </item>
  </channel>
</rss>

