I am a recent convert to JMP and SAS from SPSS and am trying to recode data entry errors in script in order to document the decisions and changes made to the data file. I am trying to use conditional functions to do so but am not seeing the anticipated results.
For example, I want to change 888 values to 0 (but keep all other values the same) for a numeric variable 'detainer' and use the following script:
detainer = If(detainer==888,0, detainer);
When I run the script and check the data file for changes, I don't see the change and I don't get an error message.