Hi ,
I am using CNTLIN formats
I have a couple of questions regarding.
can you explain why the provider=label???
if I have several other variables X, Y, Z in the KEEP which variable of those will get the "=label"????? is there a preference ?
secondly what does that =label do????
Thanks
data test1(rename=(providerkey=start provider=label));
set dim_provider(keep=providerkey provider /*X Y Z*/);
fmtname='attprovkey';
run;
proc format cntlin=test1;run;
data both;
set hsp_acct_2;
attending_provider=put(providerattendingkey, attprovkey.);
run;
I'm not sure what you are attempting in the long run.
There may be a case of mistaken identity. For CNTLIN data sets Label is an expected Variable. In many other places Label is the Text associated with a variable name. Yes any variable can have a label associeated. But the Variable named Label, which is a character variable, is what holds the text associeated with the values.
Did you create the CNTLout data set and look at it?
PROC Format requires a variable named LABEL to describe the display associated with the values in the Start and End. Variables that are not expected by Proc Format are ignored.
A better way to understand what is required may be to make a short custom format and use the CNTLOUT option to create a data set that describes the format. Then you will see a bit more clearly what the variables associated with a CNTLIN data set do.
Hi,
I was thinking I could use label on any of the variables on the Keep statement!!!!
Please correct?
Thanks
I'm not sure what you are attempting in the long run.
There may be a case of mistaken identity. For CNTLIN data sets Label is an expected Variable. In many other places Label is the Text associated with a variable name. Yes any variable can have a label associeated. But the Variable named Label, which is a character variable, is what holds the text associeated with the values.
Did you create the CNTLout data set and look at it?
Looking at an example in the SAS documentation should help. Also try running the example program and examining the CNTLIN dataset.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.