troubleshooting Question

How to output SAS listing of variables with ASCII special characters?

Avatar of labradorchik
labradorchikFlag for United States of America asked on
DatabasesProgrammingDB Reporting Tools
8 Comments1 Solution797 ViewsLast Modified:
I have three SAS datasets (data1, data2, data3) with variables Var1, Var2, Var3, and Var4 in each dataset. I would like to output a list file (print listing) of the unique Var1 and a list file for unique Var3 from all datasets (data1, data2, data3), that contain a special character (standard ASCII special characters, examples: ? ( ) / ; etc…).    Then, just to add Var5 to each list to indicate the source of each record from those datasets. Duplicate records, that is records on more than one list, will be included.

Just a Note:
if data1 then Var5 is A
if data2 then Var5 is B
if data3 then Var5 is C

How can this be done?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros