BookmarkSubscribeRSS Feed
advoss
Quartz | Level 8
I like Flip's straightforward nonmacro approach, partly because I often use similar code. Yes, it can be done with a macro, but why make it so difficult?
Flip
Fluorite | Level 6
A random thought:

I have been developing in SAS for 25 years. Now I did more Oracle forms work around the time that V9 came out so I got a bit rusty. At any rate, in the past programmers would always try everything before diving into a macro. I knew programmers with 5 to 10 years of experience who would not put two & together.

Now it seems that people are trying a complex macro as their first SAS programming attempt. It seems like the large number of programming examples available lead people to try to modify things they do not really understand. Don't get me wrong, I love macro programming. I had an application in production for over a decade with 45 macro conditional and looping statements in one line of SAS code. The point is, the simple solluton is often much easier to maintain and more efficient.
If you are new to SAS, try simple first.
deleted_user
Not applicable
Thanks flip and everyone, for your feedback, This discussion group has been most useful. Sometimes learning SAS is overwhelming and hard to grasp until you're faced with a real-world project. Not thru a book.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 17 replies
  • 2150 views
  • 0 likes
  • 5 in conversation