thank you for your support... I was trying both the approach and learning.
I tried it yesterday, and it worked well.
Thanks for your support.
I think adding macro variables is just going to make things harder to maintain or understand.
If I understand your goal then something more like
proc sql;
create table want as
select <variable list>
from dataset
where dn in ('CH' 'HY' 'WH')
and FC in ('ABC1' 'ABC2' '123ABC' '456ABC' 'ABCXYZ' 'ABCQWE')
and SFC in ('ABC1234' 'ABC4567' )
and PN in ('ch1234' 'ch5678')
;
quit;
I didn't put your full list of values for SFC and PN but the pattern should be clear. ( and they appear to be dummy values as well)
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.