Page 1 of 1

Error - Tally only can be used in Table procedures

Posted: November 12th, 2015, 4:19 am
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

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

Posted: November 12th, 2015, 11:32 am
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.

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

Posted: November 13th, 2015, 7:46 am
by Elvis
Hi Josh,
it's not there,
attached a screen capture,

any other idea?

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

Posted: November 13th, 2015, 11:07 am
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.

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

Posted: November 16th, 2015, 3:05 am
by Elvis
Hi Josh,
attached is the application, it's a bit not organized well, but i am sure you will get it :)

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

Posted: November 16th, 2015, 6:55 am
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.

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

Posted: November 16th, 2015, 9:35 am
by Elvis
great,

thank you very much josh,
best regards