<?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: Need to unzip an xpt file which size is 1gig+ in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902995#M40317</link>
    <description>&lt;P&gt;How about using BasePlus package and the&amp;nbsp;&lt;A title="https://github.com/SASPAC/baseplus/blob/main/baseplus.md#unziparch-macro" href="https://github.com/SASPAC/baseplus/blob/main/baseplus.md#unziparch-macro" target="_self"&gt;%unzipArch()&lt;/A&gt; macro to get content of that zip?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename SPFinit url "https://bit.ly/SPFinit";
%include SPFinit; 


filename packages "/home/u63672513/packages"; /* create that directory*/
%installPackage(SPFinit BasePlus)
%loadPackage(BasePlus)

%unzipArch(
  LLCP2022XPT.zip 
, path = /home/u63672513/Mydata/
, target = /home/u63672513/Mydata/
, list=1
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bart&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 15:31:34 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-11-14T15:31:34Z</dc:date>
    <item>
      <title>Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902589#M40297</link>
      <description>&lt;P&gt;Hi, I dont know too much about SAS, I am using cloud SAS Studio, I want to unzip an an XPT file which is more than 1 gig. Firstly i tried to unzip that xpt file to local drive, when i wanted to impot that file to SAS Studio, Msg come that more then 1gb size file could not be imported, So imported the zip file. then i tried following code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename inzip ZIP "/home/u63672513/Mydata/LLCP2022XPT.zip";&lt;BR /&gt;&lt;BR /&gt;/* Read the "members" (files) from the ZIP file */&lt;BR /&gt;data contents(keep=memname isFolder);&lt;BR /&gt;length memname $200 isFolder 8;&lt;BR /&gt;fid=dopen("inzip");&lt;BR /&gt;if fid=0 then&lt;BR /&gt;stop;&lt;BR /&gt;memcount=dnum(fid);&lt;BR /&gt;do i=1 to memcount;&lt;BR /&gt;memname=dread(fid,i);&lt;BR /&gt;/* check for trailing / in folder name */&lt;BR /&gt;isFolder = (first(reverse(trim(memname)))='/');&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;rc=dclose(fid);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* create a report of the ZIP contents */&lt;BR /&gt;title "Files in the ZIP file";&lt;BR /&gt;proc print data=contents noobs N;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i can see the XPT file in the work folder "&lt;SPAN&gt;/saswork/SAS_work39CD0001A26A_odaws02-apse1.oda.sas.com/SAS_work59200001A26A_odaws02-apse1.oda.sas.com&lt;/SPAN&gt;",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to copy the XPT file to the folder (/home/u63672513/Mydata), need expert help, please&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 20:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902589#M40297</guid>
      <dc:creator>aaditawhid</dc:creator>
      <dc:date>2023-11-10T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902591#M40298</link>
      <description>&lt;P&gt;Looks like you have the first part of this blog post followed, but not the second part about copying the file out. In the post they're using a WORK library to copy it out, but you should use a local folder, so change the 'xl' reference in the code to the location you want to save the file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* identify a temp folder in the WORK directory */
filename xl "/home/USERNAME/....../LLCP2022XPT.xpt" ;
 
/* hat tip: "data _null_" on SAS-L */
data _null_;
   /* using member syntax here */
   infile inzip(LLCP2022XPT.xpt) 
       lrecl=256 recfm=F length=length eof=eof unbuf;
   file   xl lrecl=256 recfm=N;
   input;
   put _infile_ $varying256. length;
   return;
 eof:
   stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, if the file is located in the cloud or public then you can download it using proc https.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 20:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902591#M40298</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-10T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902595#M40299</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks Reeza, But as i told i am very new, so i could understand, but also tried the 2nd part but rcvd error. I used your above code that is generating and&amp;nbsp; &amp;nbsp;LLCP2022.XPT with 0 byte. here is my file. please advise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaditawhid_0-1699650291318.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89669i546DBD2C4CAF5CD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aaditawhid_0-1699650291318.png" alt="aaditawhid_0-1699650291318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902595#M40299</guid>
      <dc:creator>aaditawhid</dc:creator>
      <dc:date>2023-11-10T21:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902596#M40300</link>
      <description>&lt;P&gt;A screenshot isn't helpful, you should include the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a full example of the code. Make the changes to your code appropriately. If you have issues, include your LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*path to the zip file;
filename src zip "/home/fkhurshed/Demo2/P_DR2IFF.zip";

*path to where to save the xpt file;
filename xl "/home/fkhurshed/Demo2/P_DR2IFF.xpt" ;
 
*extract file from zip - &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;P_DR2IFF.XPT&lt;/FONT&gt;&lt;/STRONG&gt; in the code below is the name of the file in the zipped file that is to be extracted;
data _null_;
   /* using member syntax here */
   infile src(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;P_DR2IFF.XPT&lt;/STRONG&gt;&lt;/FONT&gt;) 
       lrecl=256 recfm=F length=length eof=eof unbuf;
   file   xl lrecl=256 recfm=N;
   input;
   put _infile_ $varying256. length;
   return;
 eof:
   stop;
run;

*where to store the SAS dataset;
libname projfile '/home/fkhurshed/Demo2/';

*XPT file (same as filename xl as above);
libname xptfile xport '/home/fkhurshed/Demo2/P_DR2IFF.xpt' access=readonly;

*extract the SAS dataset from the XPT file;
proc copy inlib=xptfile outlib=projfile;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902596#M40300</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-10T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902601#M40301</link>
      <description>&lt;P&gt;What kind of XPT file is it?&lt;/P&gt;
&lt;P&gt;Is it a SAS V5 XPORT file (made with the XPORT libref engine)?&lt;/P&gt;
&lt;P&gt;Is it a SAS V9 XPORT file (made with the autocall macro %LOC2XPT)?&lt;/P&gt;
&lt;P&gt;Is it a CPORT file (made with PROC CPORT)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this macro to detect the filetype.&lt;/P&gt;
&lt;P&gt;&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;</description>
      <pubDate>Sat, 11 Nov 2023 17:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902601#M40301</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-11T17:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902625#M40304</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 *path to the zip file;&lt;/DIV&gt;&lt;DIV class=""&gt;70 filename src zip "/home/u63672513/Mydata/LLCP2022XPT.zip";&lt;/DIV&gt;&lt;DIV class=""&gt;71&lt;/DIV&gt;&lt;DIV class=""&gt;72 *path to where to save the xpt file;&lt;/DIV&gt;&lt;DIV class=""&gt;73 filename xl "/home/u63672513/Mydata/LLCP2022.xpt" ;&lt;/DIV&gt;&lt;DIV class=""&gt;74&lt;/DIV&gt;&lt;DIV class=""&gt;75 *extract file from zip - P_DR2IFF.XPT in the code below is the name of the file in the zipped file that is to be&lt;/DIV&gt;&lt;DIV class=""&gt;75 ! extracted;&lt;/DIV&gt;&lt;DIV class=""&gt;76 data _null_;&lt;/DIV&gt;&lt;DIV class=""&gt;77 /* using member syntax here */&lt;/DIV&gt;&lt;DIV class=""&gt;78 infile src(LLCP2022.xpt)&lt;/DIV&gt;&lt;DIV class=""&gt;79 lrecl=256 recfm=F length=length eof=eof unbuf;&lt;/DIV&gt;&lt;DIV class=""&gt;80 file xl lrecl=256 recfm=N;&lt;/DIV&gt;&lt;DIV class=""&gt;81 input;&lt;/DIV&gt;&lt;DIV class=""&gt;82 put _infile_ $varying256. length;&lt;/DIV&gt;&lt;DIV class=""&gt;83 return;&lt;/DIV&gt;&lt;DIV class=""&gt;84 eof:&lt;/DIV&gt;&lt;DIV class=""&gt;85 stop;&lt;/DIV&gt;&lt;DIV class=""&gt;86 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Entry LLCP2022.xpt in zip file /home/u63672513/Mydata/LLCP2022XPT.zip does not exist.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Physical file does not exist, LLCP2022.xpt.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: UNBUFFERED is the default with RECFM=N.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The file XL is:&lt;/DIV&gt;&lt;DIV class=""&gt;Filename=/home/u63672513/Mydata/LLCP2022.xpt,&lt;/DIV&gt;&lt;DIV class=""&gt;Owner Name=u63672513,Group Name=oda,&lt;/DIV&gt;&lt;DIV class=""&gt;Access Permission=-rw-r--r--,&lt;/DIV&gt;&lt;DIV class=""&gt;Last Modified=11Nov2023:10:27:26&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;memory 553.87k&lt;/DIV&gt;&lt;DIV class=""&gt;OS Memory 19616.00k&lt;/DIV&gt;&lt;DIV class=""&gt;Timestamp 11/11/2023 04:27:26 AM&lt;/DIV&gt;&lt;DIV class=""&gt;Step Count 24 Switch Count 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Reclaims 150&lt;/DIV&gt;&lt;DIV class=""&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class=""&gt;Voluntary Context Switches 9&lt;/DIV&gt;&lt;DIV class=""&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;87&lt;/DIV&gt;&lt;DIV class=""&gt;88 *where to store the SAS dataset;&lt;/DIV&gt;&lt;DIV class=""&gt;89 libname projfile '/home/u63672513/Mydata';&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref PROJFILE refers to the same physical library as SASDATA1.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref PROJFILE was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class=""&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class=""&gt;Physical Name: /home/u63672513/Mydata&lt;/DIV&gt;&lt;DIV class=""&gt;90&lt;/DIV&gt;&lt;DIV class=""&gt;91 *XPT file (same as filename xl as above);&lt;/DIV&gt;&lt;DIV class=""&gt;92 libname xptfile xport '/home/u63672513/Mydata/LLCP2022.xpt' access=readonly;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref XPTFILE was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class=""&gt;Engine: XPORT&lt;/DIV&gt;&lt;DIV class=""&gt;Physical Name: /home/u63672513/Mydata/LLCP2022.xpt&lt;/DIV&gt;&lt;DIV class=""&gt;93&lt;/DIV&gt;&lt;DIV class=""&gt;94 *extract the SAS dataset from the XPT file;&lt;/DIV&gt;&lt;DIV class=""&gt;95 proc copy inlib=xptfile outlib=projfile;&lt;/DIV&gt;&lt;DIV class=""&gt;96 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Input library XPTFILE is sequential.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: Input library XPTFILE is empty.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: PROCEDURE COPY used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;memory 589.40k&lt;/DIV&gt;&lt;DIV class=""&gt;OS Memory 19876.00k&lt;/DIV&gt;&lt;DIV class=""&gt;Timestamp 11/11/2023 04:27:26 AM&lt;/DIV&gt;&lt;DIV class=""&gt;Step Count 25 Switch Count 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Reclaims 107&lt;/DIV&gt;&lt;DIV class=""&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class=""&gt;Voluntary Context Switches 2&lt;/DIV&gt;&lt;DIV class=""&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Output Operations 8&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;97&lt;/DIV&gt;&lt;DIV class=""&gt;98 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;108&lt;/DIV&gt;&lt;PRE class=""&gt;Here is the log, please check&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Nov 2023 04:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902625#M40304</guid>
      <dc:creator>aaditawhid</dc:creator>
      <dc:date>2023-11-11T04:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902630#M40305</link>
      <description>Hello Dear all, Very sorry, I am really new to SAS, I just need to get the XPT file from the zip file then i need it to convert in sas7bdat. But Due to file size (more then 1 gig) i can not import it from local PC</description>
      <pubDate>Sat, 11 Nov 2023 07:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902630#M40305</guid>
      <dc:creator>aaditawhid</dc:creator>
      <dc:date>2023-11-11T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902633#M40306</link>
      <description>&lt;P&gt;Check this spelling:&lt;/P&gt;
&lt;PRE&gt;"/home/u63672513/Mydata/LLCP2022XPT.zip"&lt;/PRE&gt;
&lt;P&gt;It must be exactly how the path is named in the filesystem, particularly with regards to upper/lowercase. The UNIX system on which On Demand runs is case sensitive.&lt;/P&gt;
&lt;P&gt;After uploading the zip file, right-click on it in the file navigation and copy the whole name from there.&lt;/P&gt;
&lt;P&gt;Also make sure that the spelling of the xpt member in the zip archive is correct.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 10:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902633#M40306</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-11T10:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902654#M40308</link>
      <description>&lt;P&gt;The code shown here does not agree with the name you showed in the picture you posted before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is using:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile src(LLCP2022.xpt)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the name that I read from the picture you posed is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LLCP2022.XPT&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you see the difference?&lt;/P&gt;
&lt;LI-SPOILER&gt;Wrong case on the letters in the extension.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sat, 11 Nov 2023 15:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902654#M40308</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-11T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902655#M40309</link>
      <description>&lt;P&gt;To see what type of file your "xpt" file is read the first 80 bytes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "/home/u63672513/Mydata/LLCP2022XPT.zip" zip
          member='*' lrecl=80 recfm=f obs=1;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the first line looks like:&lt;/P&gt;
&lt;PRE&gt;**COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED** **COMPRESSED********&lt;/PRE&gt;
&lt;P&gt;Then your "xpt" file is a CPORT file and you will need to use PROC CIMPORT to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the first line looks like:&lt;/P&gt;
&lt;PRE&gt;HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000&lt;/PRE&gt;
&lt;P&gt;then you have a version 5 XPORT file and you can use the XPORT libref engine to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the fist line looks like&lt;/P&gt;
&lt;PRE&gt;HEADER RECORD*******LIBV8   HEADER RECORD!!!!!!!000000000000000000000000000000&lt;/PRE&gt;
&lt;P&gt;Then you have a version 9 XPORT file you will have to use the %XPT2LOC() macro to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 16:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902655#M40309</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-11T16:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902993#M40316</link>
      <description>&lt;P&gt;I believe it's case sensitive and XPT needs to be capitalized in the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;infile src(LLCP2022.&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;xpt&lt;/STRONG&gt;&lt;/FONT&gt;) lrecl=256 recfm=F length=length eof=eof unbuf;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902993#M40316</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-14T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to unzip an xpt file which size is 1gig+</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902995#M40317</link>
      <description>&lt;P&gt;How about using BasePlus package and the&amp;nbsp;&lt;A title="https://github.com/SASPAC/baseplus/blob/main/baseplus.md#unziparch-macro" href="https://github.com/SASPAC/baseplus/blob/main/baseplus.md#unziparch-macro" target="_self"&gt;%unzipArch()&lt;/A&gt; macro to get content of that zip?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename SPFinit url "https://bit.ly/SPFinit";
%include SPFinit; 


filename packages "/home/u63672513/packages"; /* create that directory*/
%installPackage(SPFinit BasePlus)
%loadPackage(BasePlus)

%unzipArch(
  LLCP2022XPT.zip 
, path = /home/u63672513/Mydata/
, target = /home/u63672513/Mydata/
, list=1
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bart&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Need-to-unzip-an-xpt-file-which-size-is-1gig/m-p/902995#M40317</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-11-14T15:31:34Z</dc:date>
    </item>
  </channel>
</rss>

