<?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: Throwing this error when I try to make a XPT file of the sashelp.cars dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943775#M369874</link>
    <description>&lt;P&gt;Maxim 4. Try It.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 12:41:41 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-09-13T12:41:41Z</dc:date>
    <item>
      <title>Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943538#M369793</link>
      <description>&lt;PRE&gt;CODE-
libname xptfile xport '/home/u60697506/sasuser.v94/Permanants Libs/XPT/new.xpt';

data cars;
set sashelp.cars;
run;

data xptfile.new;
set cars;
run;

LOG-
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         libname xptfile xport '/home/u60697506/sasuser.v94/Permanants Libs/XPT/new.xpt';
 NOTE: Libref XPTFILE was successfully assigned as follows: 
       Engine:        XPORT 
       Physical Name: /home/u60697506/sasuser.v94/Permanants Libs/XPT/new.xpt
 70         
 71         data cars;
 72         set sashelp.cars;
 73         run;
 
 NOTE: There were 428 observations read from the data set SASHELP.CARS.
 NOTE: The data set WORK.CARS has 428 observations and 15 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              837.40k
       OS Memory           20388.00k
       Timestamp           09/11/2024 04:57:42 PM
       Step Count                        38  Switch Count  2
       Page Faults                       0
       Page Reclaims                     130
       Page Swaps                        0
       Voluntary Context Switches        10
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 74         
 75         data xptfile.new;
 76         set cars;
 77         run;
 
&lt;FONT color="#FF0000"&gt; ERROR: The variable name DriveTrain is illegal for the version 6 file XPTFILE.NEW.DATA.
&lt;/FONT&gt; NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set XPTFILE.NEW was only partially opened and will not be saved.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              735.75k
       OS Memory           20388.00k
       Timestamp           09/11/2024 04:57:42 PM
       Step Count                        39  Switch Count  0
       Page Faults                       0
       Page Reclaims                     59
       Page Swaps                        0
       Voluntary Context Switches        10
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 78         
 79         
 80         
 81         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 91         &lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2024 17:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943538#M369793</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2024-09-11T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943544#M369794</link>
      <description>&lt;P&gt;The xport engine, which goes back over 30 years, is a bit limited. By default variables are restricted to the 8 character names of SAS V6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Proc CPORT /CIMPORT to create transport files with long variable and table names.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 17:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943544#M369794</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-11T17:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943554#M369798</link>
      <description>&lt;P&gt;Not sure why the ERROR message mentions V6.&amp;nbsp; The XPORT format has not changed since V5.&amp;nbsp; Names are limited to 8 bytes and character variables to a maximum length of 200 bytes and labels are limited to 40 bytes, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But SAS did introduce two new autocall macros that can be used to create XPORT files using new SAS V9 format.&amp;nbsp; The macros are named %LOC2XPT() and %XPT2LOC().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename xptfile '/home/u60697506/sasuser.v94/Permanants Libs/XPT/cars.xpt';
%loc2xpt(libref=sashelp,memlist=cars,filespec=xptfile,format=v9)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2024 18:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943554#M369798</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-11T18:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943772#M369872</link>
      <description>So, by this we can create XPTs which are version 9 compatible?</description>
      <pubDate>Fri, 13 Sep 2024 12:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943772#M369872</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2024-09-13T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943775#M369874</link>
      <description>&lt;P&gt;Maxim 4. Try It.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943775#M369874</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-09-13T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943777#M369876</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420483"&gt;@Nipun22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;So, by this we can create XPTs which are version 9 compatible?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can create XPORT files that can handle the new features of SAS version 7/8/9 datasets.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/kb/46/944.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/46/944.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the extension (XPT) that you use to NAME the file has nothing to do with the content of the file.&amp;nbsp; Unlike CSV or XLSX the extension XPT is not universally understood to indicate a single type of file. You could have a SAS version 5 XPORT format,&amp;nbsp; or a CPORT format file or something completely different.&amp;nbsp; If you get sent a file and are unsure what type of file it is you could try using this macro to check.&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/sasutils/macros/blob/master/xpttype.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/xpttype.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/943777#M369876</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-13T12:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing this error when I try to make a XPT file of the sashelp.cars dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/944283#M370004</link>
      <description>Well I guess to keep things simple and easy this works for now but surely will explore other options you have stated in the github link in the future. Thanks again!!</description>
      <pubDate>Tue, 17 Sep 2024 15:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Throwing-this-error-when-I-try-to-make-a-XPT-file-of-the-sashelp/m-p/944283#M370004</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2024-09-17T15:47:55Z</dc:date>
    </item>
  </channel>
</rss>

