<?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: DUSMCPUB files? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/919563#M362193</link>
    <description>&lt;P&gt;You might be better off to start you own thread and point to this one (copy the url) to ask new questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since SAS "merge" is a side-by-side record combination I suspect you want to actually append sets (stack vertically year after year for example) as I can't see any reason/use for a side-by-side merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS data sets for each year then you could use Proc Append to create a combined file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc append base=want data=year2011;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Proc append base=want data=year2012;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Proc Append base=want data=year2013;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Repeat as need. Want is the name you would want for your data. Include a library as desired. I picked some random year named files to add.&lt;/P&gt;
&lt;P&gt;Append will run faster than data step combinations. It will also provide warning about differences in variable names/types and not allow the append to occur by default. Giving you a chance to address any data issues.&lt;/P&gt;
&lt;P&gt;Append expects all the variables to be of the same name and type in all the data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 20:43:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-03-08T20:43:50Z</dc:date>
    <item>
      <title>DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863315#M341036</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I'm trying to work with some of the US Mortality Multiple Cause files that are available for public use on the web but I'm unfamiliar with the file format. When I extract the files the dataset is in a DUSMCPUB file format. I can open it with Notepad++ and it looks like a text file, but I'm not sure. The codebooks say the variables are defined by tape positions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can import these files? I'm unsure what the DBMS format should be using proc import and I don't see the file type in the wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks is advace.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 22:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863315#M341036</guid>
      <dc:creator>Beanpot</dc:creator>
      <dc:date>2023-03-09T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863319#M341039</link>
      <description>&lt;P&gt;What files exactly are you talking about?&amp;nbsp; This site?&amp;nbsp;&amp;nbsp;&lt;A href="https://www.nber.org/research/data/mortality-data-vital-statistics-nchs-multiple-cause-death-data" target="_blank"&gt;https://www.nber.org/research/data/mortality-data-vital-statistics-nchs-multiple-cause-death-data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;They have zipped SAS7BDAT files to download.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 23:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863319#M341039</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-09T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863322#M341041</link>
      <description>&lt;P&gt;Tape position? I have to see this. I haven't read tape with SAS since 1987.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 23:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863322#M341041</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-09T23:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863324#M341043</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; - If it was punched card position I'd be even more impressed....given SAS has a CARDS statement&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 00:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863324#M341043</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-10T00:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863327#M341045</link>
      <description>&lt;P&gt;No, the ones I have are from the National Center for Health Statistics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cdc.gov/nchs/data_access/vitalstatsonline.htm#Mortality_Multiple" target="_blank"&gt;https://www.cdc.gov/nchs/data_access/vitalstatsonline.htm#Mortality_Multiple&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take a closer look at the NBER files. They may be the same. I didn't expect to see health data from the Bureau of Economic Research...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863327#M341045</guid>
      <dc:creator>Beanpot</dc:creator>
      <dc:date>2023-03-10T01:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863328#M341046</link>
      <description>&lt;P&gt;Right? I suspect it's just a legacy jargon situation.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863328#M341046</guid>
      <dc:creator>Beanpot</dc:creator>
      <dc:date>2023-03-10T01:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863329#M341047</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; - If it was punched card position I'd be even more impressed....given SAS has a CARDS statement&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When I started programming in FORTRAN it was on punch-cards.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863329#M341047</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-10T01:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863330#M341048</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;When I started programming in FORTRAN it was on punch-cards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Same!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863330#M341048</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-10T01:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863353#M341050</link>
      <description>&lt;P&gt;I don't see anything there talking about tapes.&amp;nbsp; It just looks like a normal description of fixed length data records.&lt;/P&gt;
&lt;P&gt;For example here is the description of one variable.&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="Tom_0-1678425346874.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81297iF00E5DE4E795E0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1678425346874.png" alt="Tom_0-1678425346874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So it is saying that the MRACE6 is the mother's race coded into one of 6 categories. It starts in the 107 character on the line and uses two characters (why it uses 2 I have no idea, maybe that wanted to add an extra space in case they changed the coding to require 2 characters in the future).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to read it with an INPUT statement all you need to do is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input 
   ...
   mrace6 107-108
   ...
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or possibly&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input 
   ...
   @107 mrace6 2.
   ...
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to create a FORMAT that can convert the value 1 to the string 'White (only)' so it will be easier to read the tables you produce.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 05:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863353#M341050</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-10T05:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863470#M341084</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438906"&gt;@Beanpot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Right? I suspect it's just a legacy jargon situation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One certainly hopes so. Unless the data relates to measurements taken with a tape measure...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/863470#M341084</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-10T15:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/919503#M362171</link>
      <description>&lt;P&gt;Did you get this figured out? I am using the same data (multiple causes of death) and have not figured out how to write programming to merge multiple datasets across time in SAS 9.4. I would greatly appreciate any guidance or statements you may have used.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 17:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/919503#M362171</guid>
      <dc:creator>tiffergirl18</dc:creator>
      <dc:date>2024-03-08T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: DUSMCPUB files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/919563#M362193</link>
      <description>&lt;P&gt;You might be better off to start you own thread and point to this one (copy the url) to ask new questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since SAS "merge" is a side-by-side record combination I suspect you want to actually append sets (stack vertically year after year for example) as I can't see any reason/use for a side-by-side merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS data sets for each year then you could use Proc Append to create a combined file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc append base=want data=year2011;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Proc append base=want data=year2012;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Proc Append base=want data=year2013;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Repeat as need. Want is the name you would want for your data. Include a library as desired. I picked some random year named files to add.&lt;/P&gt;
&lt;P&gt;Append will run faster than data step combinations. It will also provide warning about differences in variable names/types and not allow the append to occur by default. Giving you a chance to address any data issues.&lt;/P&gt;
&lt;P&gt;Append expects all the variables to be of the same name and type in all the data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 20:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DUSMCPUB-files/m-p/919563#M362193</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-03-08T20:43:50Z</dc:date>
    </item>
  </channel>
</rss>

