10-28-2015 01:36 PM
Can some one please help me in identifying the issue here. When my if condition is true the value is being retained. Any input is helpful. Please find the attached files.
data test(keep= aeacnno aeshosp aesdisab _aescong _aeshosp _aesdisab);
set AE_shell ae;
if aeacnno eq 1 then _aescong= 'Y';
if aeshosp eq 1 then _aeshosp= 'Y';
if aesdisab eq 1 then _aesdisab= 'Y';
10-28-2015 01:59 PM
10-28-2015 02:04 PM
10-28-2015 04:03 PM
Or since it appears you are using the AE_SHELL dataset to set the variable order and attributes add the call missing to end of the step. Just add an OUTPUT statement before the call missing. Otherwise the reference to those variables in the CALL MISSING statement before the SET statement will make them the first three variables in your dataset.
Need further help from the community? Please ask a new question.