Hi,
I am trying to convert all "yes" to 1 and all "no" to 0 in a case statement.
Here is my code:
for each prospect where:
display
prosp_id
name
address
active
case active:
when "yes" then 1.
when "no" then 0.
end case.
skip.
end
However I receive a message "Line2. Colon followed by white space terminates a statement. (199)"
If I comment Case block I don't receive any errors. By my Case starts with line 7 , not 2.
Thanks.
I am trying to convert all "yes" to 1 and all "no" to 0 in a case statement.
Here is my code:
for each prospect where:
display
prosp_id
name
address
active
case active:
when "yes" then 1.
when "no" then 0.
end case.
skip.
end
However I receive a message "Line2. Colon followed by white space terminates a statement. (199)"
If I comment Case block I don't receive any errors. By my Case starts with line 7 , not 2.
Thanks.