if (symptom = 'headache' and symptom = 'nausea' and symptom = 'fatigue') then disease = 1;
else disease = 0;
format disease diseasef.;
proc freq data = xls_sas;
title 'Frequency Tabulation Disease X';
tables disease;
run;
The prompt is if the patient has three symptoms (headache, nausea and fatigue), then disease = 1. The machine raises red flag "Statement is not valid or it is used out of proper order". Many thanks!