BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ybz12003
Rhodochrosite | Level 12

Hello, 

I could like to get the total amount by multiplying 'Charge_Amount' and 'Charge_Quantity.'  The 'Charge_Amount' is DOLLAR21.2 and the 'Charge_Quantity' is Best12.  My code is shown below.  However, I didn't see any total_cost.  Please help.

Format Total_Cost DOLLAR30.2;

Total_Cost=Charge_Amount*Charge_Quantity;
1 ACCEPTED SOLUTION

Accepted Solutions
ybz12003
Rhodochrosite | Level 12
Never mind, I figure out.

View solution in original post

1 REPLY 1
ybz12003
Rhodochrosite | Level 12
Never mind, I figure out.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 649 views
  • 0 likes
  • 1 in conversation