Hello All-
I am trying to write a new variable in a data set. From my research it says I need to use the 'data' command and 'set' but I am getting an error. My current data set is called middata.her and I am trying to make a new variable named ICENTERED that calculates the deviation of a variable from the sample mean. Here is my code:
libname middata '/folders/myfolders/';
data ICENTERED
set middata.HER;
run;
Here is the error
ERROR 56-185: SET is not allowed in the DATA statement when option DATASTMTCHK=COREKEYWORDS. Check for a missing semicolon in the
DATA statement, or use DATASTMTCHK=NONE.
I am not sure what that error means because every tutorial says to use "Set"