I'm sure this is an easy solution, but I can't seem to find it online. I have created a macro array with a list of 100 or so words that I want excluded from various comments lines. %array(&exemptarr, data=exemptvalues, var=exemptv); data sasdata.commcheck; set commentsearch; i=0; nomore=0; format cleanname $100.; do until (nomore); i+1; if scan(namelist, i, ' ') = ' ' then nomore=1; else do; terms = scan(namelist,i,' '); if terms not in &exemptarr then cleanname=catx (' ', cleanname, terms); end; end; run; I would like to call the "exemptarr" array to compare it to the terms list but when I do without the ampersand it gives me the following: ERROR: The right-hand operand must be an array name or a constant value list. And when I include the ampersand(like in the example above) it gives me the following error: WARNING: Apparent symbolic reference EXEMPTARR not resolved. Any help would be much appreciated. Thanks
... View more