BookmarkSubscribeRSS Feed
felicity1212
Calcite | Level 5

hi- i have a dataset "allproviders"

i would like to export the data in allproviders to multiple tabs based on change in "providername".  So for every group of "providername" i would like a new excel worksheet.  I found this thread https://communities.sas.com/message/13594#13594, but not sure how to use the code.  Can someone help me with code using my dataset names so that I can undestand it? I am completely new to SAS programmaing.

Thank you kindly

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  I just posted a simple example to your other forum posting. I am teaching today and not on a computer where I can do downloads. However, SASHELP.CLASS has 19 observations and 5 variables. You should be able to run my code posted in your other forum post and figure out how to use your dataset name and variable names with my code.

https://communities.sas.com/message/130211#130211

But run the code first and see if you can figure out what's what. SASHELP.CLASS is the name of the dataset and AGE is the name of the BY variable. So if your variable is called PROVIDERNAME or PROVNAME, then where I have BY AGE, you would have BY PROVNAME or BY PROVIDERNAME in your code.

Then where I have a VAR statement, you would use your other variables instead of NAME, AGE, SEX, HEIGHT and WEIGHT.

cynthia

felicity1212
Calcite | Level 5

thank you cynthia!

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2787 views
  • 1 like
  • 2 in conversation