ok I\'ve gotta point out that you\'re not using your identifiers right. Since everyone\'s missed that so far.
$readini -n %QID.dataini seen $2
should be
$readini(%QID.dataini,n,seen,$2)