BookmarkSubscribeRSS Feed
Aalcorn
Calcite | Level 5

I am no where as advanced as you guys, I am trying to figure percentages as one of my table fields/another table field-was trying to do this as an advanced expression to give me a percentage.. can anyone assist in the correct language? would be much appreciated, i am still new to this, thanks!

ex: t1.NCOVD_CHRG_AMT/t1.TOT_CHRG

that's what i was using as advanced expression (don't laugh pls)

then i got error

_______

22

76

Error 22-322: syntax error, expecting one of the following: ',', Group, Having, Order, Where.

error, statement will be ignored

3 REPLIES 3
Reeza
Super User

So this is in EG? You may want to post it in that forum. 

What version of EG and can you provide more details on your data and calculation, and the full code that causes the error.

Usually its straight division and then apply a format of percent to the data.

Aalcorn
Calcite | Level 5

yes it is in EG, geez, where is that forum, i wil look, thank you!

Marina
Calcite | Level 5

Aalcorn,

It is obvious that there is no syntax error in the excerpt of code you posted.

It would not be possible to help you, unless you provide more, preferably all, query code.

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1977 views
  • 0 likes
  • 3 in conversation