<?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 upload directly from Internet to ODA in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/702124#M215045</link>
    <description>&lt;P&gt;It looks like the url assigned is pointing to a starting page of cdc.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017" target="_blank"&gt;https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct url is a one like below.&lt;BR /&gt;&lt;A href="https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a program I used for researching proc http.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename resp "/home/xxxxxx/cportout/ALB_CR_J.XPT";

proc http url='https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT' 
		method="GET" out=resp;
run;
*cport file name;
libname libref1 xport '/home/u1878840/cportout/ALB_CR_J.XPT';
libname target '/home/xxxxxx/target';&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Nov 2020 21:50:26 GMT</pubDate>
    <dc:creator>hhinohar</dc:creator>
    <dc:date>2020-11-27T21:50:26Z</dc:date>
    <item>
      <title>How to upload directly from Internet to ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/701936#M214972</link>
      <description>&lt;P&gt;Is there a way to upload XPORT files from Internet website like NHANES website directly to an ODA folder?Of course, I can download it to my computer and hen upload it to ODA folder but that is probably not what I want to do. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 00:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/701936#M214972</guid>
      <dc:creator>RBJ</dc:creator>
      <dc:date>2020-11-27T00:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload directly from Internet to ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/701957#M214983</link>
      <description>&lt;P&gt;proc http might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p1dxmryomzzddkn1t8ljx3pcaxk2.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p1dxmryomzzddkn1t8ljx3pcaxk2.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename resp "&amp;lt;folder_where_you_want_to_download_xpt_file&amp;gt;";

proc http url='&amp;lt;xpt-url&amp;gt;' 
		method="GET" out=resp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Nov 2020 04:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/701957#M214983</guid>
      <dc:creator>hhinohar</dc:creator>
      <dc:date>2020-11-27T04:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload directly from Internet to ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/702117#M215044</link>
      <description>NO, it did not after libname statement. The uploaded file was not recognised as a SAS data.Here is my program:filename resp "/folders/myfolders/sasdata/CMV_J.XPT";proc http url='&lt;A href="https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017'&amp;nbsp;method=&amp;quot;GET" target="_blank"&gt;https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017'&amp;nbsp;method="GET&lt;/A&gt;" out=resp;run;libname xp xport '/folders/myfolders/sasdata/CMV_J.XPT';proc copy in=xp out=work;run;proc contents; run;&lt;BR /&gt;And here is the LOG&lt;BR /&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 72 73 filename resp "/folders/myfolders/sasdata/CMV_J.XPT"; 74 proc http url='&lt;A href="https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017" target="_blank"&gt;https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017&lt;/A&gt;' 75 method="GET" out=resp; 76 run; NOTE: PROCEDURE HTTP used (Total process time): real time 1.46 seconds cpu time 0.15 seconds 77 libname xp xport '/folders/myfolders/sasdata/CMV_J.XPT'; NOTE: Libref XP was successfully assigned as follows: Engine: XPORT Physical Name: /folders/myfolders/sasdata/CMV_J.XPT 78 proc copy in=xp out=work; 79 run; NOTE: Input library XP is sequential. ERROR: File XP.ALL. is not a SAS data set. NOTE: Statements not processed because of errors noted above. NOTE: PROCEDURE COPY used (Total process time): real time 0.00 seconds cpu time 0.01 seconds NOTE: The SAS System stopped processing this step because of errors. 80 proc contents; run; ERROR: File WORK.VERSION_1606509115215.DATA does not exist. NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/702117#M215044</guid>
      <dc:creator>RBJ</dc:creator>
      <dc:date>2020-11-27T20:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload directly from Internet to ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/702124#M215045</link>
      <description>&lt;P&gt;It looks like the url assigned is pointing to a starting page of cdc.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017" target="_blank"&gt;https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&amp;amp;CycleBeginYear=2017&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct url is a one like below.&lt;BR /&gt;&lt;A href="https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT" target="_blank"&gt;https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a program I used for researching proc http.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename resp "/home/xxxxxx/cportout/ALB_CR_J.XPT";

proc http url='https://wwwn.cdc.gov/Nchs/Nhanes/2017-2018/ALB_CR_J.XPT' 
		method="GET" out=resp;
run;
*cport file name;
libname libref1 xport '/home/u1878840/cportout/ALB_CR_J.XPT';
libname target '/home/xxxxxx/target';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Nov 2020 21:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-upload-directly-from-Internet-to-ODA/m-p/702124#M215045</guid>
      <dc:creator>hhinohar</dc:creator>
      <dc:date>2020-11-27T21:50:26Z</dc:date>
    </item>
  </channel>
</rss>

