Close, but probably not the way you want. YOU should always test your code.
To test a format, test all values AND some values that aren't in your list.
proc format; value $Jobf 'TA2'='MANAGER' 'ME2'='ASSISTANT' 'ME1'='TECHNICAL WRITER' 'FA3'='SENIOR TECHNICAL WRITER' 'TA3'='ASST MANAGER' 'ME3'='ASSISTANT ASST' 'SCP'='TIME PASS'; RUN; data test; input orig $5.; want=put("TA2", $jobf.); cards; TA2 ME2 ME1 FA3 TA3 ME3 SCP XXX YYY AAA TB24 TA24 ME23 ; run; proc print data=test;run;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.