<?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: Read in html data from Census website in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425431#M68280</link>
    <description>&lt;P&gt;The current SAS limit is 32 characters, but that is really way longer than you need.&amp;nbsp;We lived with 8 character names for a long time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the variable's label to store a longer descriptions of the variable's content.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Short names will be much easier to work with.&amp;nbsp; You can fit more variable names on a line of code or on the screen in&amp;nbsp;a tabular data display, etc. For example if you had names that were longer than 32 characters you could not have a statement using more than two variables without generating a line of code that needs to be wrapped into multiple lines because it is longer than the 65-75 characters that humans can easily read.&amp;nbsp; Ever think about why newspapers and magazines separate the page into multiple columns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 22:54:14 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-01-05T22:54:14Z</dc:date>
    <item>
      <title>Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424418#M68182</link>
      <description>&lt;P&gt;How to read in html data like below from Census website? I appreciate if any demo code is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt" target="_blank"&gt;https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424418#M68182</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-02T19:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424428#M68185</link>
      <description>&lt;P&gt;That's a text file so you can import it the same way you would any text file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can point to the text file directly using filename URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myfile URL 'link to file';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p103pi2vrzn6qhn1e8alrs01jrb7.htm&amp;amp;locale=en#n07zrt1wqha0ljn1addkca5gl1hw" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p103pi2vrzn6qhn1e8alrs01jrb7.htm&amp;amp;locale=en#n07zrt1wqha0ljn1addkca5gl1hw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424428#M68185</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-02T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424451#M68189</link>
      <description>&lt;P&gt;Thank you Reeza.&lt;/P&gt;&lt;P&gt;What am I doing wrong here? Resulting myfile data was crushed into a column as shown in the image below. Do you also see variable names in the url? I don't know what to do without variables' names specified. Any census data experience here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log= 'H:\log1.txt'; run;
filename myfile URL 'https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt';
data myfile;
   infile myfile length=len dlm=' ' dsd obs=5;
   input record $varying500. len;
   if _n_&amp;gt;=0 then do; 
      put record $varying500. len;
   end;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dataview.png" style="width: 257px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17602i05E1F2536AAE615A/image-size/large?v=v2&amp;amp;px=999" role="button" title="dataview.png" alt="dataview.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 21:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424451#M68189</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-02T21:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424475#M68194</link>
      <description>&lt;P&gt;This is a text file so it's coming in as a long string. You need to determine how to read the file. Likely you need to look at the file structure and determine the layout, delimiter (I'm guessing tab?) and how to read it in. I would probably recommend looking at this as a local file first. Download, save it locally, then determine how you would import the file. Then once you've figured that out, simply replace the file path with the URL one and it will work as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Off topic:&lt;/P&gt;
&lt;P&gt;If you have R there's a Census package directly,&amp;nbsp;&lt;A href="https://cran.r-project.org/web/packages/tidycensus/tidycensus.pdf" target="_blank"&gt;https://cran.r-project.org/web/packages/tidycensus/tidycensus.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424475#M68194</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-02T22:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424480#M68195</link>
      <description>&lt;P&gt;It's "crushed into a column" because you told SAS to read the entire record into a single field named RECORD.&amp;nbsp; If you want multiple variables, they have to be specified on the input statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a layout of the url page, identifying data fields corresponding columns, then you can do an INPUT statement listing all the incoming variables with corresponding formats.&amp;nbsp; By&amp;nbsp;examining the first 183 lines of data, it appears that this file, like most census data files I'm familiar with, uses a fixed-format layout of all the fields on each record, which means you don't need a "LEN=" or "DLM=" parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your task is simply to transcribe the url file to a local raw file, you can use something like this, which takes advantage of the automatic variable _INFILE_:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;filename&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; myfile &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;URL&lt;/FONT&gt; &lt;FONT color="#800080" face="Sasfont"&gt;'&lt;A href="https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt" target="_blank"&gt;https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt&lt;/A&gt;'&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;filename&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; mytxt &lt;/FONT&gt;&lt;FONT color="#800080" face="Sasfont"&gt;'c:\temp\t.txt'&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Sasfont"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; myfile;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;&amp;nbsp; infile&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; myfile ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;&amp;nbsp; input&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;&amp;nbsp; file&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; mytxt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Sasfont"&gt;&amp;nbsp; put&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Sasfont"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Sasfont"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can develop an input statement to read in all the fields from a local raw file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 23:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424480#M68195</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-01-02T23:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424482#M68196</link>
      <description>&lt;P&gt;That file looks to be fixed columns. Count the columns for the variables of interest and specify on the input statement:&lt;/P&gt;
&lt;P&gt;Most of the census files also have a description document floating around that would tell you the contents of the file and which columns the values are in.&lt;/P&gt;
&lt;P&gt;That document usually makes it very simple to write input statements as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 23:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424482#M68196</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-02T23:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424485#M68197</link>
      <description>&lt;P&gt;You need the record layout because that first 'variable, 001001 is actually two variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure where you get that, but worst case scenario email Census Bureau.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_census.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17604i7175D296D9B1DABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_census.jpg" alt="delete_census.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 00:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424485#M68197</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T00:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424689#M68227</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much for demo code. I have following error in the log where code creating table with no variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; filename myfile URL&lt;BR /&gt;91 ! '&lt;A href="https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-count" target="_blank"&gt;https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-count&lt;/A&gt;&lt;BR /&gt;91 ! y-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt';&lt;BR /&gt;92&amp;nbsp;&amp;nbsp; filename mytxt 'D:\...\temp.txt';&lt;BR /&gt;93&amp;nbsp;&amp;nbsp; data myfile;&lt;BR /&gt;94&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile myfile ;&lt;BR /&gt;95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;BR /&gt;96&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mytxt;&lt;BR /&gt;97&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_;&lt;BR /&gt;98&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile MYFILE is:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=&lt;A href="https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county" target="_blank"&gt;https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Local Host Name=2ua7181m5x,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Local Host IP addr=172.18.120.54,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service Hostname Name=a104-80-30-196.deploy.static.akamaitechnologies.com,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service IP addr=104.80.30.196,Service Name=N/A,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service Portno=443,Lrecl=32767,Recfm=Variable&lt;BR /&gt;&lt;BR /&gt;NOTE: The file MYTXT is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=D:\...\temp.txt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=32767,File Size (bytes)=0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Modified=03Jan2018:14:16:18,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create Time=03Jan2018:14:15:10&lt;BR /&gt;&lt;BR /&gt;NOTE: 407867 records were read from the infile MYFILE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 490.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 490.&lt;BR /&gt;NOTE: 407867 records were written to the file MYTXT.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 490.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 490.&lt;BR /&gt;NOTE: The data set WORK.MYFILE has 407867 observations and 0 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8:57.08&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13.71 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424689#M68227</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-03T19:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424705#M68232</link>
      <description>Reeza, how about open data in notepad++ and read from there? Would that work? I'm asking because I go through administrative rights granting procedure to install external program such as notepad++.</description>
      <pubDate>Wed, 03 Jan 2018 19:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424705#M68232</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-03T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424706#M68233</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt;&amp;nbsp;The code from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;will download the data and create file locally. You still have to go through the steps I mentioned, basically, find the record layout file and write a data step to read the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether the file is stored on the web or locally will only affect the speed, not the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424706#M68233</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T19:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424710#M68234</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt; wrote:&lt;BR /&gt;Reeza, how about open data in notepad++ and read from there? Would that work? I'm asking because I go through administrative rights granting procedure to install external program such as notepad++.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nope, and you don't need admin privileges to install NotePad++, point it towards a location that you have write access to such as C:\_localdata\....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need a record layout unless you understand exactly where each variable starts and stops. For example my initial assumption was that 001001 was a single variable when it's clearly two variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could probably attempt to parse it out, but how do you have any idea what the numerical columns represent? The best way to guarantee the data is to get a record layout.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424710#M68234</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T19:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424725#M68235</link>
      <description>&lt;P&gt;Documentation appears to be here, page 24/25 seem to be what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.census.gov/topics/population/migration/guidance/county-to-county-migration-flows.html" target="_blank"&gt;https://www.census.gov/topics/population/migration/guidance/county-to-county-migration-flows.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you scroll down the page, there's a section for documentation. It doesn't look like the file you're referencing is documented but the previous years layout seems correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have everything you need to now get this working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And a key portion noted in the document:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;As of 2016, all ACS migration flows data for counties, MCDs, and MSAs were made available in the Census application programming interface (API) through the Census Developers site.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would probably look into that, which is likely to give you back a semi-structured file of some sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_input_step.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17633iCC94761FCF2FD5A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_input_step.JPG" alt="delete_input_step.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424725#M68235</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424726#M68236</link>
      <description>&lt;P&gt;If you're running this from SAS Enterprise Guide, you can do something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, download the file into a known location on your server.&amp;nbsp; I reference the SASUSER location here, but you could choose another path that you know you can navigate to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename census "%sysfunc(getoption(sasuser))/raw.txt";
proc http
 url="https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt"
 method="GET"
 out=census;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I prefer PROC HTTP instead of FILENAME URL.&amp;nbsp; It's a bit more code, but you have more control over the file name and destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Servers list, navigate your server's file system and find the file you just downloaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="serverlist.png" style="width: 366px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17630i17689163C2670D18/image-size/large?v=v2&amp;amp;px=999" role="button" title="serverlist.png" alt="serverlist.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Double-click the file to add to your project.&amp;nbsp; Then right-click and select Import Data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="import.png" style="width: 265px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17631i939885A50D3E946B/image-size/large?v=v2&amp;amp;px=999" role="button" title="import.png" alt="import.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Import Data wizard, select the Fixed Width option to set your column boundaries, then add the column names/attributes on the next page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="importfw.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17632i94324CE45EC1171A/image-size/large?v=v2&amp;amp;px=999" role="button" title="importfw.png" alt="importfw.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The wizard will generate DATA step code that you can then incorporate back into your original program -- and thus automate this step in the future.&amp;nbsp; I recently &lt;A href="https://blogs.sas.com/content/sasdummy/2017/12/12/import-text-data-sas-enterprise-guide/" target="_self"&gt;wrote a How To article about importing fixed-width column data here&lt;/A&gt;.&amp;nbsp; With this large file, be sure to follow my steps for tuning the performance of the import step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update: Follow&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s instructions for the documented file layout -- save my steps here for when you have a file without any code template for the layout &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/424726#M68236</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-01-03T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425420#M68277</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Thanks for pointing me out to the Census documentation where I found correct data layout in 2011-2015 Documentation, page 19. Now I have dimensions of fixed columns such as below. However, I have a log saying that "variables named ... contains more than 32 characters" yet I'd like to keep variable names as long as they're informative especially when data is shared among multiple people.&lt;/P&gt;&lt;P&gt;Any suggestions to solve this problem please?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log= 'D:\log1.txt'; run;
filename myfile URL 'https://www2.census.gov/programs-surveys/demo/tables/geographic-mobility/2015/county-to-county-migration-2011-2015/county-to-county-migration-flows/MCDxMCD_ager_US.txt';
data myfile; 
   infile myfile length=len dlm=' ' dsd obs=5 truncover;
   input record $varying500. len;
   if _n_&amp;gt;=0 then do; 
      put record $varying500. len;
   end;
run;

proc printto; run;

data temp;
infile myfile lrecl=29000 obs=100 truncover;
input var_cur_res_State_Code		1-3
var_cur_res_cty_Code		4-6
var_cur_res_MCD_Code		7-11
var_res_1_Year_Ago_State_US_Island_Foreign_Region_Code		12-14
res_1_Year_Ago_cty_Code		15-17
res_1_Year_Ago_MCD_Code		18-22
Age		24-25
cur_res_State_Name	$	26-55
cur_res_cty_Name	$	56-90
cur_res_MCD_Name	$	91-135
Population_cur_cty_MCD_Est		137-144
Population_cur_cty_MCD_MOE		146-153
Nonmovers_cur_cty_MCD_Est		155-161
Nonmovers_cur_cty_MCD_MOE		163-169
Movers_within_United_States_cur_Municipio_Est_		171-177
Movers_within_United_States_cur_Municipio_MOE		179-185
Movers_within_Same_cur_cty_MCD_Est		187-193
Movers_within_Same_cur_cty_MCD_MOE		195-201
"Movers_from_a_diff_cty_MCD_in_the_Same_State_for_cur
cty_MCD__Est"		203-209
"Movers_from_a_diff_cty_MCD_in_the_Same_State_for_cur
cty_MCD_MOE"		211-217
Movers_from_a_diff_State_for_cur_cty_MCD_Est		219-225
Movers_from_a_diff_State_for_cur_cty_MCD_MOE		227-233
Movers_from_Abroad_Est		235-241
Movers_from_Abroad_MOE		243-249
res_1_Year_Ago_State_Name_US_Island_Foreign_Region	$	251-280
res_1_Year_Ago_cty_Name	$	281-315
res_1_Year_Ago_MCD_Name	$	316-360
Population_Lived_in_cty_MCD_1_Year_Ago__Est		362-369
Population_Lived_in_cty_MCD_1_Year_Ago_MOE		371-378
Nonmovers_cty_MCD_of_res_1_Year_Ago_Est		380-386
Nonmovers_cty_MCD_of_res_1_Year_Ago_MOE		388-394
Movers_within_the_US_for_cty_MCD_of_res_1_Year_Est		396-402
Movers_within_the_US_for_cty_MCD_of_res_1_Year_MOE		404-410
"Movers_within_the_Same_cty_MCD_for_cty_MCD_of_res_1_Year
Ago_Est"		412-418
"Movers_within_the_Same_cty_MCD_for_cty_MCD_of_res_1_Year
Ago_MOE"		420-426
Movers_to_a_diff_cty_MCD_in_the_Same_State_for_cty_MCD_of res_1_Year_Ago__Est		428-434
"Movers_to_a_diff_cty_MCD_in_the_Same_State_for_cty_MCD_of
res_1_Year_Ago_MOE"		436-442
Movers_to_a_diff_State_for_cty_MCD_of_res_1_Year_Ago_Est		444-450
Movers_to_a_diff_State_for_cty_MCD_of_res_1_Year_Ago_MOE		452-458
Movers_to_PR_Est		460-466
Movers_to_PR_MOE		468-474
Movers_in_cty_MCDtocty_MCD_Flow_Est		476-482
Movers_in_cty_MCDtocty_MCD_Flow_MOE		484-490
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425420#M68277</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-05T22:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425427#M68279</link>
      <description>&lt;P&gt;You can't. SAS has a limit of variable name that's 32 characters. I would apply the correct label, but shorten the names. Then you still have the 'useful' information in the labels.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425427#M68279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T22:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425431#M68280</link>
      <description>&lt;P&gt;The current SAS limit is 32 characters, but that is really way longer than you need.&amp;nbsp;We lived with 8 character names for a long time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the variable's label to store a longer descriptions of the variable's content.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Short names will be much easier to work with.&amp;nbsp; You can fit more variable names on a line of code or on the screen in&amp;nbsp;a tabular data display, etc. For example if you had names that were longer than 32 characters you could not have a statement using more than two variables without generating a line of code that needs to be wrapped into multiple lines because it is longer than the 65-75 characters that humans can easily read.&amp;nbsp; Ever think about why newspapers and magazines separate the page into multiple columns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425431#M68280</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-01-05T22:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read in html data from Census website</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425442#M68281</link>
      <description>Hi, Chris:&lt;BR /&gt; Remember that some EG users do not have WRITE access to the SASUSER library. This is why the certification guides have special instructions for how to bypass SASUSER and point to a different location.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 05 Jan 2018 23:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-in-html-data-from-Census-website/m-p/425442#M68281</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-05T23:25:19Z</dc:date>
    </item>
  </channel>
</rss>

