Page 1 of 1

Tablogic error

Posted: January 31st, 2018, 2:12 am
by tbernardo
Hi,

I'm using CSPro 7.0.2 to tabulate disabilities but I'm having a problem.

As recommended I created an alpha variable (for data entry) to allow multiple choice options. For the tabulation application I created a numeric variable with 12 occorrences and a valueset with 1 for yes and 2 for no. In the Tablogic I added the following code:

numeric i;
string alphabet = "ABCDEFGHIJKL";

do i = 1 while i <= 12
if pos(alphabet[i:1],DEFICIENCIA) > 0 then
DEFICIENTE(i) = 1;
else
DEFICIENTE(i) = 2;
endif;
enddo;

The error message I get is Tablogic - "Cannot create numeric variable - symbol name already exists". The same happens for the alpha variable.

Any clue about how to solve this?

Regards,

Tomás

Re: Tablogic error

Posted: January 31st, 2018, 5:37 am
by josh
Hello Tomas!

Check to make sure that the variables aren't already defined in one of your dictionaries (working storage, external or main). If that is not the issue please post your application here or send it to us at cspro@lists.census.gov so we can take a closer look.