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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 585 views
  • 0 likes
  • 1 in conversation