SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jayreed34
Calcite | Level 5
proc sql ; create table op_build1 as 
select a.*
             ,apc.fee_2024 as apc_fee format dollar18.2
             ,apc.fees as apc_pricing_fee
              ,apc.indicator as apc_indicator
             ,mircm.final_fee as hosp_cm_curr_fee
              ,mirma.final_fee as hosp_ma_curr_fee
              ,typec.indicator as ip_only_flag
from op_hosp_join as a 
               left join apc_fee as apc on a.adj_proc_code = apc.cpt_code 
               left join MIRCMFees as mircm on a.adj_proc_code = mircm.cpt_code
               left join MIRMAFees as mirma on a.adj_proc_code = mirma.cpt_code
               left join Type_C as typec on a.adj_proc_code = typec.code
;
quit ;

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Since the only format you show is Dollar18.2 that means that  your variable apc.fee_2024 is not numeric.

 

 

View solution in original post

1 REPLY 1
ballardw
Super User

Since the only format you show is Dollar18.2 that means that  your variable apc.fee_2024 is not numeric.

 

 

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 1094 views
  • 2 likes
  • 2 in conversation