<?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: Importing quarterly data into SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458808#M70183</link>
    <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;I have another question. Which one is better to use in data steps, 'Missover' or 'Truncover'? Proc import data log has missover&amp;nbsp;but when I checked for the missover&amp;nbsp;vs truncover&amp;nbsp;comparison, I felt latter is better to use. Any advice? Thank you&lt;/P&gt;&lt;P&gt;Mine is a healthcare data. Attached is the link to the data source.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dshs.texas.gov/THCIC/Hospitals/Download.shtm" target="_blank"&gt;https://www.dshs.texas.gov/THCIC/Hospitals/Download.shtm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 19:27:04 GMT</pubDate>
    <dc:creator>GARYV</dc:creator>
    <dc:date>2018-04-30T19:27:04Z</dc:date>
    <item>
      <title>Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450452#M69707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have data from each quarter of a year in a fixed width text&amp;nbsp;file. I am using the import function and then after selecting required variables, exporting it as an excel ( tried different formats too) file so that I can combine all four quarters of data for a particular year. But, when I tried to merge them using SAS its not working because for many variables SAS is reading them differently, either as numeric or character value. Each quarter has 300 plus variables and around 80,000 rows. How can I use SAS to read variable similarly for all quarters so that I can merge them? Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450452#M69707</guid>
      <dc:creator>GARYV</dc:creator>
      <dc:date>2018-04-02T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450453#M69708</link>
      <description>&lt;P&gt;DO NOT use proc import repeatedly. Once proc import has imported a text file, you find a data step in the log. Copy that, and use it for all similar files. Proc import is a &lt;EM&gt;guessing&lt;/EM&gt; procedure that will deliver different structures for different content.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450453#M69708</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-02T20:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450471#M69710</link>
      <description>&lt;P&gt;I would be very surprised to find that Proc Import read any fixed column file correctly as data can appear such as:&lt;/P&gt;
&lt;PRE&gt;1234567234567 &lt;/PRE&gt;
&lt;P&gt;and be the values for 4 or 5 variables AND include implied decimals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have a document that describes what columns represent each variable and whether it is expected to be character, numeric or a date/time/datetime variable. Likely it also describes the expected appearance for such things as dates and whether special codes are used to indicate missing data (old school values like -99 or -999 or 9999999 ).&lt;/P&gt;
&lt;P&gt;The use that document to write a data step to read one of the files. Once you have the code to read one file you change the input file name and the output data set to read each.&lt;/P&gt;
&lt;P&gt;Generic example:&lt;/P&gt;
&lt;PRE&gt;data firstquarter;
   infile "path/filename"   ;
   input
      var1  1-8
      var2 $ 9-15
      var3  16-17
      var4  18-25
   ;
run;&lt;/PRE&gt;
&lt;P&gt;reads four variables var1, var3 and var4 are numeric, var2 is character (the $). The numbers are the start/end columns of a variable and should be in your documentation. If a variable only takes a single position you use Varx&amp;nbsp; 234 for example to read a single digit from column 234.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dates and times likely will involve specifying the INFORMAT to read them correctly and assign appropriate formats for display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some cases the documentation is actually amenable to copy and paste into the Input statement if it reads something like&lt;/P&gt;
&lt;P&gt;Variable name&amp;nbsp;&amp;nbsp;&amp;nbsp; start column end column&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/P&gt;
&lt;P&gt;identifier&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; character&lt;/P&gt;
&lt;P&gt;value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numeric&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you can paste this into a spreadsheet with the values in the correct columns you can actual write a formula to build&lt;/P&gt;
&lt;P&gt;"indentifier $&amp;nbsp; 1 - 20"&lt;/P&gt;
&lt;P&gt;"value&amp;nbsp;&amp;nbsp; 21 - 25"&lt;/P&gt;
&lt;P&gt;using the type information.&lt;/P&gt;
&lt;P&gt;If you have special code values in variables that should be numeric but look like N/A for "not available" or similar you will get missing (usually appropriate) but if the values are 9999999 to indicate missing or such you may either want to create custom informats to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then either use a data step or proc append to combine the data in the order you want.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 21:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/450471#M69710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-02T21:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458808#M70183</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;I have another question. Which one is better to use in data steps, 'Missover' or 'Truncover'? Proc import data log has missover&amp;nbsp;but when I checked for the missover&amp;nbsp;vs truncover&amp;nbsp;comparison, I felt latter is better to use. Any advice? Thank you&lt;/P&gt;&lt;P&gt;Mine is a healthcare data. Attached is the link to the data source.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dshs.texas.gov/THCIC/Hospitals/Download.shtm" target="_blank"&gt;https://www.dshs.texas.gov/THCIC/Hospitals/Download.shtm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458808#M70183</guid>
      <dc:creator>GARYV</dc:creator>
      <dc:date>2018-04-30T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458817#M70184</link>
      <description>&lt;P&gt;Truncover is better, hands down. Missover is more or less legacy.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458817#M70184</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-30T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing quarterly data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458818#M70185</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-quarterly-data-into-SAS/m-p/458818#M70185</guid>
      <dc:creator>GARYV</dc:creator>
      <dc:date>2018-04-30T19:47:01Z</dc:date>
    </item>
  </channel>
</rss>

