This would depend on your data structure, but in general the formula is exactly the same. Substitute the variable names in place of Z2 and Y2.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.