<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>david rasch - making stuff work &#187; investments</title>
	<atom:link href="http://www.davidrasch.com/tag/investments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidrasch.com</link>
	<description></description>
	<lastBuildDate>Mon, 04 Apr 2011 00:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>New 401(k) doesn&#8217;t even support QIF</title>
		<link>http://www.davidrasch.com/2008/07/04/new-401k-doesnt-even-support-qif/</link>
		<comments>http://www.davidrasch.com/2008/07/04/new-401k-doesnt-even-support-qif/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 14:18:48 +0000</pubDate>
		<dc:creator>drasch</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[401k]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[investments]]></category>
		<category><![CDATA[mvp]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[qif]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.davidrasch.com/2008/07/04/new-401k-doesnt-even-support-qif/</guid>
		<description><![CDATA[<p>The 401(k) program we switched to this year happens to have been a step backward as far as support for exporting transactions. In talking with Alan about it, he said he&#8217;d downloaded a program to convert the CSV they export into a QIF. In looking at the QIF format, I just decided to whip <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.davidrasch.com/2008/07/04/new-401k-doesnt-even-support-qif/">New 401(k) doesn&#8217;t even support QIF</a></span>]]></description>
			<content:encoded><![CDATA[<p>The 401(k) program we switched to this year happens to have been a step backward as far as support for exporting transactions.  In talking with Alan about it, he said he&#8217;d downloaded a program to convert the CSV they export into a QIF.  In looking at the <a href="http://en.wikipedia.org/wiki/QIF">QIF format</a>, I just decided to whip up something to do the conversion for me.  This converts the export from <a href="http://www.mvpplanadmin.com/">MVP Plan Administrators</a> to QIF and imports successfully into Quicken for Mac 2007.</p>
<pre class="brush: ruby; title: ;">
#!/usr/bin/perl

#based on: http://en.wikipedia.org/wiki/QIF

open(INH, &quot;&lt; &quot;. $ARGV[0]);
open(OUTH, &quot;&gt;&quot;. $ARGV[0]. &quot;.qif&quot;);

print OUTH '!Account
NDavid\'s New 401k
TInvst
^
!Type:Invst
';

&lt;INH&gt;

while (&lt;INH&gt;) {
        chop;
        chop;
        s/\$//g;
        @vals = split /,/;

        if ($vals[3] eq 'RECEIVABL') {
                next;
        }
        print OUTH &quot;D&quot; . $vals[0] . &quot;\n&quot;;
        print OUTH &quot;N&quot; . $vals[5] . &quot;\n&quot;;
        print OUTH &quot;Y&quot; . $vals[4] . &quot;\n&quot;;
        print OUTH &quot;T&quot; . $vals[9] . &quot;\n&quot;;
        print OUTH &quot;I&quot; . $vals[8] . &quot;\n&quot;;
        print OUTH &quot;Q&quot; . $vals[7] . &quot;\n&quot;;
        print OUTH &quot;M&quot; . $vals[6] . &quot;\n&quot;;
        print OUTH &quot;^\n&quot;;
}

close OUTH;
</pre>
<p>Known issues:</p>
<ul>
<li>You still need to go through and mark Dividend transactions as such.</li>
<li>Doesn&#8217;t handle Sells very well, especially when these are to cover fund fees</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrasch.com/2008/07/04/new-401k-doesnt-even-support-qif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

