Page 1 of 1

Logic Language and commands

Posted: January 7th, 2014, 4:30 pm
by gonzalop
Hi all,
I am new with CSPRO and am trying to learn the logic language and commands. Does anyone know of a comprehensive manual that have information about this? the only thing I found had only basic descriptions of the IF and Skip commands, but I would like to know what other possibilities and functions I can do with Logic.
I know STATA coding language and I think this one is a bit different. For example, I usually write "If no equal to 99" as "IF != 99", but I don't know how to express that in CSPRO.
Thanks!

Re: Logic Language and commands

Posted: January 7th, 2014, 8:08 pm
by lls
Did you have a look at the reference page of this site? http://www.csprousers.org/reference/
You will find some interesting documentation, such as the "Language Cheat Sheet" or the “Development of Data Entry and CAPI Applications in CSPro“.

Also, on the Census Bureau website you will find the "Complete User’s Guide, including Logic Reference Guide".
http://www.census.gov/population/intern ... odocs.html

Re: Logic Language and commands

Posted: January 8th, 2014, 10:28 am
by gonzalop
Thanks! this is very useful! I will take a look to these documents
I am looking that negation is also "!" in CSPRO. Do you know why when I put:

PROC C1_D
if $!=99 then
skip to C2_A_IN;
endif;

It tells me there is an error?

Thanks again!

Re: Logic Language and commands

Posted: January 8th, 2014, 5:03 pm
by lls
Try instead:

if not $ = 99 then

or

if ! $ = 99 then

or

if $ <> 99 then

I think all should work, I usualy use the "not" word rather than symbols.

Re: Logic Language and commands

Posted: January 10th, 2014, 3:07 pm
by gonzalop
I didn´t know I could do that! I will try it! Thanks!!