Logic Language and commands

Discussions about CSEntry
Post Reply
gonzalop

Logic Language and commands

Post 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!
lls
Posts: 109
Joined: December 6th, 2011, 3:11 pm
Location: Geneva, Switzerland

Re: Logic Language and commands

Post 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
gonzalop

Re: Logic Language and commands

Post 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!
lls
Posts: 109
Joined: December 6th, 2011, 3:11 pm
Location: Geneva, Switzerland

Re: Logic Language and commands

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

Re: Logic Language and commands

Post by gonzalop »

I didn´t know I could do that! I will try it! Thanks!!
Post Reply