You don't need sashelp.vcolumn or dictionary.columns or PROC CONTENTS for this task. You can use VNEXT to put the name row and in the same data step put the observations.
Hi data _null_, how do you format your code when posting to the forum?
Is the code written like that in your SAS window, if so then format there and then copy to notepad and then to this window, also you can use the advanced editor top right of the edit window.
As for your slowdowns, could be any number of things. How is SAS installed, locally, network, virtual, what speeds are the networks running at, how much ram on the server etc. I would run through the executing process with your SAS/Network people to see why you are getting such speeds, its probably something simple, for instance we were getting terrible speeds sometime back, there was a syncronisation program running which was interfering with read/write on files.
From SAS EG program editor window. Right click on the program and choose "Copy HTML source to clipboard"
In this forum's reply editor window click HTML (toggle HTML mode). Then paste and click HTML to toggle back.
@mediaeval for the performance try to understand what you are causing in the system. See my previous post(s).
Thanks everyone for taking the time to answer. In the end I used Quentin's solution and runtimes have reduced from 10 minutes or so to just under 3 minutes.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.