Hash Object error

Posts: 1

Hash Object error

it is the first time I try to use hash object, anyone can help me to figure the problem out?


259 data patient3;
260 if _N_=1 then do;
261 if 0 then set Hospital.doctors (keep = md_id lastname rename=(lastname = doctor));
262 declare hash doctors (dataset:"Hospital.doctors");
263 doctors.definekey("md_id");
264 doctors.definedata("lastname");
265 doctors.difinedone();
ERROR: DATA STEP Component Object failure. Aborted during the COMPILATION phase.
ERROR 558-185: Reference difinedone is not a member of object doctors.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

266 end;
267 set Hospital.patients(keep=primmd lastname firstname);
268 doctors.find(keySmiley Tonguerimmd);
269 DoctorID = md_id;
270 run;


Super User
Posts: 6,751

Re: Hash Object error

Posted in reply to richardzl6594

Check spelling:  definedone, not difinedone

Ask a Question
Discussion stats
  • 1 reply
  • 1 like
  • 2 in conversation