Error - Tally only can be used in Table procedures

Discussions about tabulating data in the designer or in batch mode
Forum rules
New release: CSPro 8.0
Post Reply
Elvis
Posts: 6
Joined: November 5th, 2015, 4:20 am
Location: Tirana, Albania

Error - Tally only can be used in Table procedures

Post by Elvis »

the code
PROC GENDER
{Generated Code}
Tally
CROSSTAB GENDER GENDER_VS1, SYSTEM_TOTAL
STAT GENDER_VS1 (TOTAL, FREQ) SYSTEM_TOTAL (TOTAL)
UNIT (GENDER_VS1 by SYSTEM_TOTAL) MSA_QUEST
ENDUNIT
;

hi all, i have this problem when i try to product tables. i have searched on this forum and found a problem about OLD_TABS variable on environment variables. i am using a x64 win 8.1 and i have not found that variable in variable list.
i am using cspro 6.1
also one thing, does highlight + F1 doesn't work anymore? on early versions if you highlight a command and press F1, the help tab opened in that highlighted command, now just it open the index help page.

thanks in advance,
Elvis
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Error - Tally only can be used in Table procedures

Post by josh »

Are you sure that OLD_TABS isn't set? To be sure open a DOS command prompt (type "cmd" in windows search) and that at the prompt type "SET OLD_TABS". It should then tell you that the environment variable is not defined.
Elvis
Posts: 6
Joined: November 5th, 2015, 4:20 am
Location: Tirana, Albania

Re: Error - Tally only can be used in Table procedures

Post by Elvis »

Hi Josh,
it's not there,
attached a screen capture,

any other idea?
Attachments
capture_2.PNG
capture_2.PNG (9.19 KiB) Viewed 8934 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Error - Tally only can be used in Table procedures

Post by josh »

Maybe it isn't OLD_TABS and it is a problem with your app. You can zip up your app and post and I can test it here.
Elvis
Posts: 6
Joined: November 5th, 2015, 4:20 am
Location: Tirana, Albania

Re: Error - Tally only can be used in Table procedures

Post by Elvis »

Hi Josh,
attached is the application, it's a bit not organized well, but i am sure you will get it :)
Attachments
Mobile_Survey_App.rar
(35.07 KiB) Downloaded 409 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Error - Tally only can be used in Table procedures

Post by josh »

It would appear that the problem is that the name of the table (GENDER) is the same as the name of one of the variables. If I delete the table and recreate it using the default name (TABLE1) the error goes away.
Elvis
Posts: 6
Joined: November 5th, 2015, 4:20 am
Location: Tirana, Albania

Re: Error - Tally only can be used in Table procedures

Post by Elvis »

great,

thank you very much josh,
best regards
Post Reply