<?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 import mplus .dat file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/import-mplus-dat-file/m-p/76779#M22271</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to import data obtained via MPLUS.  I made an excel file from the data - and imported it into SAS.  But a column that was mainly missing (but not fully missing) ended up fully missing in SAS - not sure why.&lt;BR /&gt;
&lt;BR /&gt;
Thought I should try to INPUT or IMPORT directly from the MPLUS .dat file.  MPLUS provides the format as:&lt;BR /&gt;
    AFDC0103       F10.3&lt;BR /&gt;
    AFDC01ON       F10.3&lt;BR /&gt;
    AFDC03ON       F10.3&lt;BR /&gt;
    MOWK0301       F10.3&lt;BR /&gt;
    HRS0301        F10.3&lt;BR /&gt;
    EARN0301       F10.3&lt;BR /&gt;
    WAGE0301       F10.3&lt;BR /&gt;
    DCP0301        F10.3&lt;BR /&gt;
    BLACK01        F10.3&lt;BR /&gt;
    UNEMP_01       F10.3&lt;BR /&gt;
    POV_2001       F10.3&lt;BR /&gt;
    WLF_RCPT       F10.3&lt;BR /&gt;
    ER17016        F10.3&lt;BR /&gt;
    ER17017        F10.3&lt;BR /&gt;
    ER17013        F10.3&lt;BR /&gt;
    HGHGRADE       F10.3&lt;BR /&gt;
    GRAD_HS        F10.3&lt;BR /&gt;
    ER17002        I5&lt;BR /&gt;
    CPROB1         F10.3&lt;BR /&gt;
    CPROB2         F10.3&lt;BR /&gt;
    CPROB3         F10.3&lt;BR /&gt;
    C              F10.3&lt;BR /&gt;
&lt;BR /&gt;
From an eyeball look - it's not delimited.  One issue is that if a field is missing, there's an asterisk left justified (immediately next to the previous data).  The nonmissing items in said variable are right justified -  &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Anjali</description>
    <pubDate>Tue, 27 Oct 2009 01:44:25 GMT</pubDate>
    <dc:creator>anjgupta</dc:creator>
    <dc:date>2009-10-27T01:44:25Z</dc:date>
    <item>
      <title>import mplus .dat file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-mplus-dat-file/m-p/76779#M22271</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to import data obtained via MPLUS.  I made an excel file from the data - and imported it into SAS.  But a column that was mainly missing (but not fully missing) ended up fully missing in SAS - not sure why.&lt;BR /&gt;
&lt;BR /&gt;
Thought I should try to INPUT or IMPORT directly from the MPLUS .dat file.  MPLUS provides the format as:&lt;BR /&gt;
    AFDC0103       F10.3&lt;BR /&gt;
    AFDC01ON       F10.3&lt;BR /&gt;
    AFDC03ON       F10.3&lt;BR /&gt;
    MOWK0301       F10.3&lt;BR /&gt;
    HRS0301        F10.3&lt;BR /&gt;
    EARN0301       F10.3&lt;BR /&gt;
    WAGE0301       F10.3&lt;BR /&gt;
    DCP0301        F10.3&lt;BR /&gt;
    BLACK01        F10.3&lt;BR /&gt;
    UNEMP_01       F10.3&lt;BR /&gt;
    POV_2001       F10.3&lt;BR /&gt;
    WLF_RCPT       F10.3&lt;BR /&gt;
    ER17016        F10.3&lt;BR /&gt;
    ER17017        F10.3&lt;BR /&gt;
    ER17013        F10.3&lt;BR /&gt;
    HGHGRADE       F10.3&lt;BR /&gt;
    GRAD_HS        F10.3&lt;BR /&gt;
    ER17002        I5&lt;BR /&gt;
    CPROB1         F10.3&lt;BR /&gt;
    CPROB2         F10.3&lt;BR /&gt;
    CPROB3         F10.3&lt;BR /&gt;
    C              F10.3&lt;BR /&gt;
&lt;BR /&gt;
From an eyeball look - it's not delimited.  One issue is that if a field is missing, there's an asterisk left justified (immediately next to the previous data).  The nonmissing items in said variable are right justified -  &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Anjali</description>
      <pubDate>Tue, 27 Oct 2009 01:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-mplus-dat-file/m-p/76779#M22271</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2009-10-27T01:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: import mplus .dat file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/import-mplus-dat-file/m-p/76780#M22272</link>
      <description>How about you use the description and :&lt;BR /&gt;
1- replace F10.3 by 10.3&lt;BR /&gt;
2- replace I5 by 5.&lt;BR /&gt;
to create the input statement.&lt;BR /&gt;
&lt;BR /&gt;
On the data side (in the file):&lt;BR /&gt;
1- replace &lt;B&gt;StarSpace&lt;/B&gt; with &lt;B&gt;SpaceDot&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Would that work?</description>
      <pubDate>Wed, 28 Oct 2009 01:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/import-mplus-dat-file/m-p/76780#M22272</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-10-28T01:33:57Z</dc:date>
    </item>
  </channel>
</rss>

