How do I calculate gross sales from Order Quantity and Unit Price in SAS 9.4?
First figure out what is the name of the dataset. Let's say it is named HAVE.
Second figure out what are the names of the variables. Let's say they are named QUANTITY and PRICE.
Now you have the information you need to write some code.
data want; set have; gross = quantity*price; run;
View solution in original post
Thanks!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Save the date!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.