I want to create a nwe column following the rules.
How to get the result by using Add A New Computed Column?
I want to create a new cloumn to do the same effect. Under the same COUN, VILL and HOUS, I can calculate the mount of male and female in P1_4 using Add A New Computed column. The picture I attached is made by summary tables (that's the effect I want.) .
Post test data in the form of a datastep!!
Look at the guidance found when entering a new post. Show your test data clearly as as datastep - attachments are not recommended as they are a security risk. Then present your logic between the two. From the given output it looks like you want a proc report output for this not a dataset, so you can use across variables in the proc report:
http://www2.sas.com/proceedings/forum2008/265-2008.pdf
Although as you have not followed the guidance I am just guessing here.
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.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.