Hello experts, For the code below, if "error" variable in the following work.merge dataset loaded into hash table has values that contain many special characters like [,./;'etc]. How do I make the following code works? (please just focus on error variable which is highlighted in blue, that is where I get the error in the log) %macro Email(email=,suite=,reference=,error=,time=,abortcode=,); FILENAME Mailbox EMAIL "&email" Subject= ""; DATA _NULL_; FILE Mailbox; PUT "Hello"; PUT "Error message: &error"; PUT "Run time: &time"; PUT "Abortcode: &abortcode"; RUN; %mend; data _null_; length email $200 suite $200 reference $200 errormsg $200 time $200 abortcode $200; if _n_=1 then do; declare hash myhash(dataset: 'work.merge',ordered:'a'); /* sort order is ascending */ declare hiter iter('myhash'); myhash.definekey('suite'); /* define a key */ myhash.definedata('Email','Suite','Reference','errormsg','time','abortcode'); /* getting the columns */ myhash.definedone(); /* finish the definitions */ call missing(email, suite,reference,errormsg,time,abortcode); /* avoid uninitialized variable notes (miss in the dataset not in hash)*/ end; /* Iterate through the hash object and output data values */ rc = iter.first(); do while (rc = 0); call execute('%Email(email='||Email||',suite='||Suite||',reference='||Reference||',error='||errormsg||',time='||time||',abortcode='||abortcode||')' ); rc = iter.next(); end; run;
... View more