How to use a prompt to name the Source column showed below something different?
I used it, and it gave me this:
Thank you.
Yes you can use a Prompt to name the source column, but it requires modifying the underlying code.
Are you sure you need to modify the Source column name, or do you need to choose the source transpose variable from a list?
If so create a Variable Prompt and add as below
If you really need to modify the Source column name:
1) Create a Text Prompt, with the list of values
2) Add the Text Prompt as in your example under Options. Run the task.
3) Start typing in the generated Code to create a copy
4) Right-Click on the code under the Project tree on the left to modify the code properties. Select Prompts, add the Text Prompt.
5) Modify the PROC TRANPOSE, NAME= option as follows:
change NAME='&prompt_2'n to NAME=&prompt_2
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.