<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Verdana">Hi Joe,<br>
<br>
I could'nt get KMM to import historical quotes generated from
your script.<br>
What I found out is that the daily quotes script, has a full
quote statement on one single line.<br>
The historical quotes has a quote statement split over multiple
lines </font></font><font size="-1"><font face="Verdana"><font
size="-1"><font face="Verdana"> and has additional tokens.</font></font><br>
After I formatted the output akin the daily quotes, the historic
import went ok.<br>
I'm not familiar with the QIF format, so this is strictly based
on trial and error.<br>
<br>
<br>
</font></font><big><font size="-1"><big><tt>@@ -72,15 +70,15 @@</tt><tt><br>
</tt><tt> print FH "!Type:Prices\n";</tt><tt><br>
</tt><tt> ($symbol, $date, $close) = @$row;</tt><tt><br>
</tt><tt> #print "$symbol\n";</tt><tt><br>
</tt><tt>- print FH "Y$symbol" . ",";</tt><tt><br>
</tt><tt>+ print FH '"',$symbol,'",';</tt><tt><br>
</tt><tt> $yr=substr($date,0,4);</tt><tt><br>
</tt><tt> $mm = substr($date,5,2);</tt><tt><br>
</tt><tt> $mm = sprintf("%0${padlen}d", $mm);</tt><tt><br>
</tt><tt> $dd = substr($date,8,2);</tt><tt><br>
</tt><tt> #$dd=sprintf("%0${padlen}d", $d);</tt><tt><br>
</tt><tt> #print "$date\n";</tt><tt><br>
</tt><tt>- print FH " $mm/$dd/$yr" . "\n";</tt><tt><br>
</tt><tt>- print FH "I$close\n";</tt><tt><br>
</tt><tt>+ print FH "$close,";</tt><tt><br>
</tt><tt>+ print FH '"', "$mm/$dd/$yr", '"', "\n";</tt><tt><br>
</tt><tt> print FH "^\n";</tt><tt><br>
</tt></big></font></big><font size="-1"><font face="Verdana"><br>
<br>
<br>
Cheers,<br>
Koos<br>
<br>
</font></font><br>
</body>
</html>