Hello,
i have a sas code writen by somebody. i don't understand what the select 100 mean in this statement. can somebody tell me what this means. thank you.
/**core medical services**/
proc sql;
create table t&year as
select providerstateid as stateid, b.* from
x&year a
left join
y&year b
on a.prid=b.prid
;
create table c as
select distinct st format=ST.,
count(distinct id) as total_clients from x&year group by st
union
select 100 as st, count(distinct id) as total_clients from x&year
order by stateid;
quit;
The 100 seems to be a number greater as anything found in st, so this adds a summary row to the dataset.
Hello @juliajulia,
Just to add to the preceding replies: Take a look at the definition of the numeric format ST.. One would expect that it assigns a label (such as 'Overall total') to the value 100 so that the summary row added by means of the UNION operator can be recognized as such.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.