<?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: SAS Xport Empty Data Set File Issue in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765248#M30543</link>
    <description>&lt;P&gt;If you need V8 and later attributes in a transport file, use PROC CPORT/CIMPORT.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 07:59:19 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-09-01T07:59:19Z</dc:date>
    <item>
      <title>SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765019#M30535</link>
      <description>&lt;P&gt;Does sas xport supports rendering empty data set files along with data sets with data. Empty data set files are showing all the files data which follows it later as jumbled up. The empty data set has only sas variable and sas label defined but no data or observations.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 10:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765019#M30535</guid>
      <dc:creator>AmitSingh2</dc:creator>
      <dc:date>2021-08-31T10:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765021#M30536</link>
      <description>&lt;P&gt;The XPORT engine can deal perfectly well with "empty" (variables, but no observations) datasets. Run this for reference:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work kill nolist;
quit;

data d1;
x = 0;
stop;
run;

data d2;
x = 0;
stop;
run;

data d3;
x = 0;
stop;
run;

libname xpt xport "~/test.xpt";

proc copy in=work out=xpt memtype=data;
select d:;
run;

libname xpt clear;

libname xpt xport "~/test.xpt";

proc datasets lib=work kill nolist;
quit;

proc copy in=xpt out=work;
run;

libname xpt clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The filename of the transport file is designed for SAS On Demand, you may need to modify it.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 10:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765021#M30536</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-31T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765231#M30539</link>
      <description>We are using macros %loc2xpt(libref=source, filespec=xpt, FORMAT=V8) to generate not the xport engine as it limits to V5. Is it possible with v8 ?</description>
      <pubDate>Wed, 01 Sep 2021 06:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765231#M30539</guid>
      <dc:creator>AmitSingh2</dc:creator>
      <dc:date>2021-09-01T06:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765248#M30543</link>
      <description>&lt;P&gt;If you need V8 and later attributes in a transport file, use PROC CPORT/CIMPORT.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 07:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765248#M30543</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-01T07:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765250#M30544</link>
      <description>Thanks for the info. Yes, CPORT works fine we have observed issues in XPORT only so not sure if it's a bug in SAS or we are doing things differently. We need to support both XPORT &amp;amp; CPORT.</description>
      <pubDate>Wed, 01 Sep 2021 08:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765250#M30544</guid>
      <dc:creator>AmitSingh2</dc:creator>
      <dc:date>2021-09-01T08:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765257#M30545</link>
      <description>&lt;P&gt;We have had the discussion about empty datasets and the LOC2XPT/XPT2LOC macros just yesterday:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/xport-transport-file-not-extracting-empty-datasets-0/m-p/765133" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/xport-transport-file-not-extracting-empty-datasets-0/m-p/765133&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow that discussion to see what SAS technical support has to say about the issue, and/or get in touch with SAS TS yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 08:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765257#M30545</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-01T08:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Xport Empty Data Set File Issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765295#M30549</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/395059"&gt;@AmitSingh2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;We are using macros %loc2xpt(libref=source, filespec=xpt, FORMAT=V8) to generate not the xport engine as it limits to V5. Is it possible with v8 ?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To summarize the discussion from yesterday on another thread.&lt;/P&gt;
&lt;P&gt;The %XPT2LOC() macro has a bug.&amp;nbsp; It is not detecting the end of the data properly for 0 observations datasets when there are other datasets that come after it in the same transport file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the solutions are:&lt;/P&gt;
&lt;P&gt;1) Put only one dataset per xport file.&lt;/P&gt;
&lt;P&gt;2) Use CPORT format instead&lt;/P&gt;
&lt;P&gt;3) Use V5 (v6) compatible datasets and use the actual XPORT engine instead of the macros.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 12:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Xport-Empty-Data-Set-File-Issue/m-p/765295#M30549</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-01T12:09:33Z</dc:date>
    </item>
  </channel>
</rss>

