BookmarkSubscribeRSS Feed
Rimz
Calcite | Level 5
Hi
I have only one column in my excel sheet. I need to create a macro for getting a stratified data for the column which has data.

Example - column A is where i paste the data i need to be stratified and then click on a tab where i can put the number of products i need as my stratified data for example - 1500. This data either comes as a "open or save file"option or it can come in sheet 2 in that same macro.

Can someone help me with this please????
3 REPLIES 3
Rimz
Calcite | Level 5
Hi
I have only one column in my excel sheet. I need to create a macro for getting a stratified data for the column which has data.

Example - column A is where i paste the data i need to be stratified and then click on a tab where i can put the number of products i need as my stratified data for example - 1500. This data either comes as a "open or save file"option or it can come in sheet 2 in that same macro.

Can someone help me with this please????
PaigeMiller
Diamond | Level 26

Duplicate question, the exact same question was asked https://communities.sas.com/t5/SAS-Programming/Macro-for-stratified-sample/td-p/738342

--
Paige Miller
PaigeMiller
Diamond | Level 26

This doesn't appear to be a SAS question.

 

And please don't post the same question twice.

--
Paige Miller

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 653 views
  • 0 likes
  • 2 in conversation