Hi i have just started learning SAS programming. I found it quite different another programming languages while implementing my ideas. Somebody had suggested me learn macros, looping, and functions to implement my ideas. Please suggest me good material on the internet where I can learn SAS programming with examples. Thankyou
SAS provides a free e-learning course, which is definitely worth checking out
https://support.sas.com/edu/elearning.html?ctry=us&productType=library
Do not start with macros before you have mastered the basic data step techniques, use of the most important functions (sort, means, tabulate, format, print, report, contents, datasets, transpose), and SQL. With the typical SAS courses, you start with the macro language no before at least three weeks of dealing with other aspects of SAS.
Hi,
There are many learning places out there:
http://support.sas.com/training/tutorial/
If you want to learn graphs, then this blog is a valuable resource:
http://blogs.sas.com/content/graphicallyspeaking/
I would certainly second @Kurt_Bremser's suggestion there. Learn Base SAS thouroughly before moving onto advanced topics such as macro. Macro is just a find and replce tool, but it can very quickly complicate you and make your code dreadful. There is nothing you can do in macro which you cannot do in Base SAS.
I would also suggest you look at different data models, transposed (data going across) and normalised (data going down), as these can again make your life a lot easier, something like reuducing your code just by moving to the other structure, then doing your processing and flipping back up.
This forum is also a good learning place, even after 15 years I still look at some posts and think I didn't know that.
And remember, if you can't think of something:
google search: SAS <mytopic>
Generally yields plenty of results.
Oh, finally, by other languages do you mean .net type OOP langauges, or something else? SAS is a data based approach, so datasteps run over data observations like a loop, and procedures can do loops by using by processing - important to remember as its rare you would need to hardcode a loop in yourself.
I mean R, Python, MATLAB etc. for Other languages,
Ok, well R has dataset type convention, and Python has some sort of distionary/array type setup. So should be similar in that regards, although I don't believe either is hard typed - i.e. in SAS you need to define column lengths/formats.
If you find a specific topic you're having difficulties you can search at lexjansen.com for user written papers on the topic.
For example based on your question I started thinking simulations, which means I'd refer you to the paper called Don't Be Loopy by David Cassell. Or Rick Wicklins book on simulation.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.