<?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: PROC COPY/EXPORT engine limitations for transport files (.xpt) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806530#M317783</link>
    <description>&lt;P&gt;Are you sure you are using EXPORT? For old file format transport files I would expect XPORT, they are different procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you look into Proc CPORT (and CIMPORT on the other side)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation of XPORT:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="n13279g3qg84xyn1rpffq9x8ird0" class="xis-topic"&gt;
&lt;H1 class="xis-title"&gt;&lt;A name="~1" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; Engine Limitations&lt;/H1&gt;
&lt;DIV id="p06lz8dur9fpedn1l0r3n3vxua0f" class="xis-topicContent"&gt;
&lt;DIV id="p0vd01uixr96hon15zy8e7rqo8em" class="xis-paragraph"&gt;Using the &lt;A id="GTp17537rv8rsqjgn1v43uizinrhuy" class="glossTerm" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine has these limitations:&lt;/DIV&gt;
&lt;DIV id="p0gd069nzc3pfkn18e3j09f5443r" class="xis-paragraph"&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="p1jqdw2gs8yvbgn1f8u5fg6monwn" class="xis-item"&gt;
&lt;DIV id="n1deyfv6a21ciwn11tmnc7w1rqbg" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine supports only members of type DATA. It does not support members of type CATALOG or VIEW.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0a17dxgvne913n1cqpnfextvisu" class="xis-item"&gt;
&lt;DIV id="p13r7psqqyvqmjn1nbca77vk2xtl" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine supports a feature set that is compatible with SAS 6. The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; &lt;A id="GTn1img40yjbq00un1nmmhvuev9v8y" class="glossTerm" target="_blank"&gt;&lt;/A&gt;engine cannot support SAS 9 features, such as long variable names. Warning or error messages report limitations that are encountered during the transport operation. For details about typical error messages and recovery actions, see &lt;SPAN class="xis-xrefSee"&gt;&lt;A title="" href="http://127.0.0.1:63226/help/movefile.hlp/p0ex40t4pm2p40n16csbr5rlzj1e.htm#n0g643mr42gg6an1gj0xfmk5hdxw" target="_blank"&gt;File library.member.DATA has too long a member name for the &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine&lt;/A&gt; &lt;/SPAN&gt;.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p1vk7domegrwgjn1r15wqtol9ysp" class="xis-item"&gt;
&lt;DIV id="p0f3i30cb6m3ukn1tcwo2e70xqbm" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine with PROC COPY does not support the transport of any type of view or &lt;A id="GTn0f6g30ljxokc9n1pkem86ukaidi" class="glossTerm" target="_blank"&gt;&lt;/A&gt;MDDB.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!-- stopindex --&gt;
&lt;DIV class="xis-navLine"&gt;
&lt;DIV class="xis-copyright"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So using XPORT will not allow the longer variable names. So if you want long variable names CPORT is the procedure you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 14:49:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-07T14:49:44Z</dc:date>
    <item>
      <title>PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806528#M317781</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While exporting sas dataset into .xpt transport file I'm getting error for variable names longer than 8 characters, like&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ERROR: The value xyz is not a valid SAS name.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;There is a system suggestion to apply options VALIDVARNAME=v6, in order to allow auto truncation of variable length up to 8. But this is not the expectation.&amp;nbsp;&lt;BR /&gt;So i'm wondering if there is any techniques that allows to export longer sas variable names into .xpt file using PROC COPY.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806528#M317781</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806529#M317782</link>
      <description>&lt;P&gt;Please show us the &lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt; log from this run of PROC COPY or PROC EXPORT (that's every single line, every single character in the log for this PROC COPY or PROC EXPORT). Copy the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66123iA4EF494F9CA0F6EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" alt="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, you need to do this every time you have an error in the log. Do not show us ERROR message detached from the rest of the log.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806529#M317782</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-07T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806530#M317783</link>
      <description>&lt;P&gt;Are you sure you are using EXPORT? For old file format transport files I would expect XPORT, they are different procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you look into Proc CPORT (and CIMPORT on the other side)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation of XPORT:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="n13279g3qg84xyn1rpffq9x8ird0" class="xis-topic"&gt;
&lt;H1 class="xis-title"&gt;&lt;A name="~1" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; Engine Limitations&lt;/H1&gt;
&lt;DIV id="p06lz8dur9fpedn1l0r3n3vxua0f" class="xis-topicContent"&gt;
&lt;DIV id="p0vd01uixr96hon15zy8e7rqo8em" class="xis-paragraph"&gt;Using the &lt;A id="GTp17537rv8rsqjgn1v43uizinrhuy" class="glossTerm" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine has these limitations:&lt;/DIV&gt;
&lt;DIV id="p0gd069nzc3pfkn18e3j09f5443r" class="xis-paragraph"&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="p1jqdw2gs8yvbgn1f8u5fg6monwn" class="xis-item"&gt;
&lt;DIV id="n1deyfv6a21ciwn11tmnc7w1rqbg" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine supports only members of type DATA. It does not support members of type CATALOG or VIEW.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0a17dxgvne913n1cqpnfextvisu" class="xis-item"&gt;
&lt;DIV id="p13r7psqqyvqmjn1nbca77vk2xtl" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine supports a feature set that is compatible with SAS 6. The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; &lt;A id="GTn1img40yjbq00un1nmmhvuev9v8y" class="glossTerm" target="_blank"&gt;&lt;/A&gt;engine cannot support SAS 9 features, such as long variable names. Warning or error messages report limitations that are encountered during the transport operation. For details about typical error messages and recovery actions, see &lt;SPAN class="xis-xrefSee"&gt;&lt;A title="" href="http://127.0.0.1:63226/help/movefile.hlp/p0ex40t4pm2p40n16csbr5rlzj1e.htm#n0g643mr42gg6an1gj0xfmk5hdxw" target="_blank"&gt;File library.member.DATA has too long a member name for the &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine&lt;/A&gt; &lt;/SPAN&gt;.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p1vk7domegrwgjn1r15wqtol9ysp" class="xis-item"&gt;
&lt;DIV id="p0f3i30cb6m3ukn1tcwo2e70xqbm" class="xis-paraSimpleFirst"&gt;The &lt;FONT style="background-color: #fcdec0;"&gt;XPORT&lt;/FONT&gt; engine with PROC COPY does not support the transport of any type of view or &lt;A id="GTn0f6g30ljxokc9n1pkem86ukaidi" class="glossTerm" target="_blank"&gt;&lt;/A&gt;MDDB.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!-- stopindex --&gt;
&lt;DIV class="xis-navLine"&gt;
&lt;DIV class="xis-copyright"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So using XPORT will not allow the longer variable names. So if you want long variable names CPORT is the procedure you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806530#M317783</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-07T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806531#M317784</link>
      <description>&lt;PRE&gt;NOTE: Copying RESULT.xyz to XPT.xyz (memtype=DATA).
NOTE: There were 0 observations read from the data set RESULT.xyz.
NOTE: The data set XPT.xyz has 0 observations and 0 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds


ERROR: The value STBRTHDAT is not a valid SAS name.

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set RESULT.xyz may be incomplete.  When this step was stopped there were 0
         observations and 0 variables.
WARNING: Data set RESULT.xyz was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; Please see the log above, thank you for the tips, I couldn't figure out how to paste codes there&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806531#M317784</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806532#M317785</link>
      <description>&lt;P&gt;Using this code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;options VALIDVARNAME=V6;
%macro export;
	%do i= 1 %to 8;
		libname xpt xport "&amp;amp;output/&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
		proc copy in=result out=xpt; 
			select &amp;amp;&amp;amp;dataset&amp;amp;i/memtype=data;
		run;
	%end;
%mend export;

%export;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806532#M317785</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T14:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806533#M317786</link>
      <description>&lt;P&gt;This is not the &lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt; log that I asked for. Where is the code that appears in the log? We need to see that in order to understand what was wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806533#M317786</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-07T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806536#M317788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Using XPORT engine with below code:&lt;/P&gt;
&lt;PRE&gt;options VALIDVARNAME=V6;
%macro export;
	%do i= 1 %to 8;
		libname xpt xport "&amp;amp;output/&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
		proc copy in=result out=xpt; 
			select &amp;amp;&amp;amp;dataset&amp;amp;i/memtype=data;
		run;
	%end;
%mend export;

%export;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But Options VALIDVARNAME=v6&amp;nbsp; I added after the system suggestion. Even this option did not allow to export all files in the macro...&amp;nbsp;&lt;BR /&gt;The purpose is not applying&amp;nbsp;VALIDVARNAME=v6.&amp;nbsp;&lt;BR /&gt;I'll try with CIMPORT now&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806536#M317788</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806537#M317789</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/321371"&gt;@A_Kh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Using XPORT engine with below code:&lt;/P&gt;
&lt;PRE&gt;options VALIDVARNAME=V6;
%macro export;
	%do i= 1 %to 8;
		libname xpt xport "&amp;amp;output/&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
		proc copy in=result out=xpt; 
			select &amp;amp;&amp;amp;dataset&amp;amp;i/memtype=data;
		run;
	%end;
%mend export;

%export;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But Options VALIDVARNAME=v6&amp;nbsp; I added after the system suggestion. Even this option did not allow to export all files in the macro...&amp;nbsp;&lt;BR /&gt;The purpose is not applying&amp;nbsp;VALIDVARNAME=v6.&amp;nbsp;&lt;BR /&gt;I'll try with CIMPORT now&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;CPORT to export the data/create transport file&amp;nbsp; CIMPORT on the receiving end to turn the transport file back to SAS data sets or catalogs.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806537#M317789</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-07T15:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806538#M317790</link>
      <description>&lt;P&gt;CPORT did not work either:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Submitted:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro export;
	%do i= 1 %to 8;
		FILENAME xpt "&amp;amp;output/&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
		PROC CPORT LIBRARY=result FILE=xpt; 
			select &amp;amp;&amp;amp;dataset&amp;amp;i/memtype=data;
		run;
	%end;
%mend export;

%export;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;1319  %macro export;
1320      %do i= 1 %to 8;
1321          FILENAME xpt "&amp;amp;output/&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
1322          PROC CPORT LIBRARY=result FILE=xpt;
1323              select &amp;amp;&amp;amp;dataset&amp;amp;i/memtype=data;
1324          run;
1325      %end;
1326  %mend export;
1327
1328  %export;


NOTE: PROC CPORT begins to transport data set RESULT.xyz
ERROR: The value xyBRTHDAT is not a valid SAS name.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds

&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806538#M317790</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T15:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806546#M317795</link>
      <description>&lt;P&gt;Why don't you just RENAME to a valid V6 name.&lt;/P&gt;
&lt;PRE&gt;rename STBRTHDAT=STBRTHDT;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806546#M317795</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-04-07T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806550#M317798</link>
      <description>&lt;P&gt;It is time to stop hiding the names of the data sets involved. I am starting to suspect the issue is not a variable but data set name.&lt;/P&gt;
&lt;P&gt;Create a statement exporting Result.xyz (and if you have been changing/hiding actual name stop) with NO macro variables, and show the log from running that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR alternatively, set Options Mprint; before running the macro and show the all the log with the generated code from the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also check syntax. Single data set with cport looks like:&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procExample"&gt;
&lt;DIV id="n1rg67r9lm07g2n139avfp1ffnz1" class="xis-program"&gt;
&lt;DIV class="xis-codeBlockComplete"&gt;
&lt;PRE&gt;libname source '&lt;SPAN class="xis-userSuppliedValue"&gt;sas-library&lt;/SPAN&gt;';
filename tranfile '&lt;SPAN class="xis-userSuppliedValue"&gt;transport-file&lt;/SPAN&gt;'    ;&lt;/PRE&gt;
&lt;PRE&gt;proc cport data=source.datasetname file=tranfile;
run;&lt;/PRE&gt;
&lt;P&gt;Also you can sent all data sets in a library to a single file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, I think that you may have one too many . in the Filename unless you actually want the file to end in ..xpt&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806550#M317798</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-07T15:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806566#M317812</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Syntax tips for PROC CPORT was helpful, looks like the issue was exactly that one. No name issue, it was just short names similar to "xyz".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;CPORT created all 8&amp;nbsp; files successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the run log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; %macro export;
1436      %do i= 1 %to 8;
1437          filename &amp;amp;&amp;amp;dataset&amp;amp;i "&amp;amp;&amp;amp;dataset&amp;amp;i...xpt";
1438          proc cport data=result.&amp;amp;&amp;amp;dataset&amp;amp;i file=&amp;amp;&amp;amp;dataset&amp;amp;i;
1439          run;
1440      %end;
1441  %mend export;
1442
1443  %export;


NOTE: PROC CPORT begins to transport data set RESULT.xy
NOTE: The data set contains 28 variables and 127 observations.
      Logical record length is 728.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.05 seconds
      cpu time            0.01 seconds




NOTE: PROC CPORT begins to transport data set RESULT.xyz
NOTE: The data set contains 31 variables and 1224 observations.
      Logical record length is 928.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.08 seconds
      cpu time            0.03 seconds




NOTE: PROC CPORT begins to transport data set RESULT.xx
NOTE: The data set contains 26 variables and 554 observations.
      Logical record length is 744.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds




NOTE: PROC CPORT begins to transport data set RESULT.yy
NOTE: The data set contains 19 variables and 23 observations.
      Logical record length is 1440.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds




NOTE: PROC CPORT begins to transport data set RESULT.xxyyzz
NOTE: The data set contains 13 variables and 3 observations.
      Logical record length is 375.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds




NOTE: PROC CPORT begins to transport data set RESULT.yyxxzz
NOTE: The data set contains 13 variables and 239 observations.
      Logical record length is 375.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds




NOTE: PROC CPORT begins to transport data set RESULT.xyzxyz
NOTE: The data set contains 13 variables and 6 observations.
      Logical record length is 375.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds




NOTE: PROC CPORT begins to transport data set RESULT.zz
NOTE: The data set contains 14 variables and 59 observations.
      Logical record length is 248.
NOTE: PROCEDURE CPORT used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;Thank you so much!&lt;BR /&gt;I appreciate all from SAS Community who involved in this conversation for their time and input!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806566#M317812</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-07T16:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806753#M317918</link>
      <description>&lt;P&gt;By the way. the XPT file created by PROC CPORT is not real XPT file ,FDA would not accept it . Try using V8 version XPT file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename xpt  'c:\temp\XPT\all.xpt'; /*指定XPT文件的路径*/ 
libname sas v9    'c:\temp\SAS';        /*指定SAS数据集的路径*/ 

/*将sas库中所有的数据集转成一个xpt文件*/
%loc2xpt(libref=sas,filespec=xpt)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806753#M317918</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-08T12:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806754#M317919</link>
      <description>&lt;A href="https://support.sas.com/kb/46/944.html" target="_blank"&gt;https://support.sas.com/kb/46/944.html&lt;/A&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/806754#M317919</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-08T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807248#M318226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the information. I couldn't create .xpt using the V8 version due to syntax issiues. I use the server SAS, not installed in my laptop c disk.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please give me the syntax for converting following dataset into .xpt using V8 xport engine?&lt;BR /&gt;&amp;nbsp;dataset= "xyz.7bdat" need to be converted "xyz.xpt"&lt;/P&gt;
&lt;P&gt;input_folder = "Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Input"&lt;/P&gt;
&lt;P&gt;output_folder =&amp;nbsp;"Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Results"&lt;BR /&gt;&lt;BR /&gt;Used the below syntax which did not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FILENAME xpt "&amp;amp;output\xyz.xpt"; *output path and output file name;
LIBNAME SAS V9 "c:\temp\SAS";
%loc2xpt(libref=sas,filespec=xpt);

PROC COPY IN=result OUT=XPT;  *result= Input_folder;
	SELECTxyz/MEMTYPE=DATA;
RUN;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 20:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807248#M318226</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-11T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807354#M318305</link>
      <description>filename xpt  'Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Results\xyz.xpt'; &lt;BR /&gt;libname sas v9    'Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Input';       &lt;BR /&gt;&lt;BR /&gt;%loc2xpt(libref=sas,filespec=xpt)</description>
      <pubDate>Tue, 12 Apr 2022 11:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807354#M318305</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-12T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807423#M318345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for providing the syntax!&lt;BR /&gt;I could create .xpt files, however couldn't convert them back to sas datasets using PROC COPY.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, this way works only when creating a single dataset from all files in the INPUT folder.&amp;nbsp; As I had 8 datasets to be transported separately, I had to process each file individually (without using do/loop as it was just testing).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have more tips on how to improve the above experience?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 15:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807423#M318345</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2022-04-12T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807425#M318347</link>
      <description>&lt;P&gt;SAS created two complementary macros for dealing with the extended xport format files. %XPT2LOC() and %LOC2XPT().&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/p1x39mw5fqqnyln1a08o7tomv47e.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/p1x39mw5fqqnyln1a08o7tomv47e.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The both support copying multiple datasets into/out of a single transport file.&amp;nbsp; Just leave off the optional MEMLIST parameter and it will copy all members from the libref into the transport file.&amp;nbsp; Or all members from the transport file to the libref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Be careful with empty datasets as there was (still is?) a bug in %XPT2LOC() where it was unable to notice when an empty file ended which caused it to read the information about the next file as data for the file that should have had zero observations.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 16:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807425#M318347</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-12T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY/EXPORT engine limitations for transport files (.xpt)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807582#M318424</link>
      <description>Follow the &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; suggestion . There is another macro can do this . Same as &lt;BR /&gt;&lt;BR /&gt;filename xpt 'Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Results\xyz.xpt';&lt;BR /&gt;libname sas v9 'Z:\Databases\CDM\Exports\Production\20220408_Test\Export\Input';&lt;BR /&gt;&lt;BR /&gt;%xpt2loc(libref=sas,filespec=xpt)</description>
      <pubDate>Wed, 13 Apr 2022 12:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-COPY-EXPORT-engine-limitations-for-transport-files-xpt/m-p/807582#M318424</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-13T12:01:24Z</dc:date>
    </item>
  </channel>
</rss>

