Tablogic error

Discussions about tabulating data in the designer or in batch mode
Forum rules
New release: CSPro 8.0
Post Reply
tbernardo
Posts: 11
Joined: May 27th, 2016, 2:02 am

Tablogic error

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Tablogic error

Post 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.
Post Reply