Analysis

  • Status Assigned
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Parser
  • Assigned To
    Torsten Bonde Christiansen
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 2.0
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Analysis
Opened by Jacob Anhøj - 19.10.2009

FS#38 - stattables freeze with variables with alike names

Strange problem. When I run this command on the attached data set everything runs fine: "stab komplians tjekind tjekud timeout /stat="sum" /by="yearweek" /n".

However, running this command freezes EpiData: "stab tjekind1 tjekind2 /stat="sum" /by="yearweek" /n" EpiData apparently goes into some kind of infinite loop using up all the cpu power. I can force the program to close by clicking the cross in the window corner.

The problem appears whenenver there are variables with almost similar names, e.g. tjekud1 tjekud2, etc.

Jamie Hockin commented on 08.05.2015 18:53

I expect the problem is that analysis is creating summary variables internally (in the example above, SUMtjekind1 and SUMtjekind2), but then shortening them to 8 characters in preparation for saving the summary data file. This yields two internal variables of the same name (SUMtjeki)!

The obvious workaround is to use STAB with short field names (max 5 characters) when multiple variables are included on the STAB statement or to be sure that the unique part of variables occurs in the first 5 characters. In the example, variables tje1kind and tje2kind would be OK

Jamie

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing