Learning SAS by Example: A Programmer's Guide and over one million other books are available for Amazon Kindle. Learn more
Buy New
  • List Price: $89.95
  • Save: $10.87 (12%)
In Stock.
Ships from and sold by Amazon.com.
Gift-wrap available.
Add to Cart
Trade in your item
Get a $42.51
Gift Card.
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Learning SAS by Example: A Programmer's Guide Paperback – March 29, 2007

ISBN-13: 978-1599941653 ISBN-10: 1599941651 Edition: Pap/Cdr

Buy New
Price: $79.08
38 New from $78.89 16 Used from $78.99
Amazon Price New from Used from
"Please retry"
"Please retry"
$78.89 $78.99


Frequently Bought Together

Learning SAS by Example: A Programmer's Guide + The Little SAS Book: A Primer, Fifth Edition + SAS Statistics by Example
Price for all three: $167.11

Buy the selected items together

Customers Who Bought This Item Also Bought


Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. Shop Now

Product Details

  • Paperback: 664 pages
  • Publisher: SAS Institute; Pap/Cdr edition (March 29, 2007)
  • Language: English
  • ISBN-10: 1599941651
  • ISBN-13: 978-1599941653
  • Product Dimensions: 9 x 7.6 x 1.2 inches
  • Shipping Weight: 2.9 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (30 customer reviews)
  • Amazon Best Sellers Rank: #51,116 in Books (See Top 100 in Books)

Editorial Reviews


"I wish that Ron Cody's new book, Learning SAS by Example: A Programmer's Guide, had been around when I was first learning SAS! This impressive book steadily moves the reader from SAS novice to SAS authority in 26 well-written, well-paced chapters. All of the basics are covered in this book; the fundamentals of the DATA step, getting data into and out of SAS, conditional and iterative processing, SAS functions and formats, important SAS procedures, creating frequency and tabular reports, and generating output in publishable formats such as RTF and PDF.
This book is well suited for people who are just learning SAS, as well as for people who would like a broad-based SAS reference. There are plenty of solid examples that emphasize the material in the chapters. Each chapter ends with exercises that test the reader's understanding of the concepts and the SAS code presented. Because of its pacing, breadth, and scope, I have no doubt that Learning SAS by Example: A Programmer's Guide will become the preferred book for learning SAS software in business, government, and educational institutions the world over. " --Michael A. Raithel, Senior Systems Analyst, Westat

"Ron Cody's newest book can serve not only as a textbook for a SAS programming course, but also as a reference for intermediate-level programmers. The book begins with basic data input methods and advances through merging data sets and more complex tasks.
I would recommend Learning SAS by Example: A Programmer's Guide to anyone wishing to learn or refresh his/her SAS programming skills. " --Karol H. Katz, M.S., Programmer Analyst, Yale University School of Medicine

"Ron Cody has earned a reputation as an excellent lecturer, instructor, and author. His most recent work, Learning SAS by Example: A Programmer's Guide, does not merely adhere to his historic level of excellence; it raises it to a new level.
Ron has succeeded in condensing the major components of Base SAS into one easy-to-read book. Using simple examples, he illustrates the use of the DATA step and many of its components, basic PROCs, and even macros and ODS.
Learning SAS by Example: A Programmer's Guide is now at the top of my list of texts to assist programmers in teaching themselves SAS. " --Andrew T. Kuligowski, SouthEast SAS Users Group

About the Author

Ron Cody, Ed.D., is a retired professor from the Robert Wood Johnson Medical School who now works as a private consultant and a national instructor for SAS Institute Inc. A SAS user since 1977, Ron's extensive knowledge and innovative style have made him a popular presenter at local, regional, and national SAS conferences. He has authored or co-authored numerous books, such as SAS Programming by Example; Applied Statistics and the SAS Programming Language, Fifth Edition; The SAS Workbook; The SAS Workbook Solutions; Cody's Data Cleaning Techniques Using SAS Software; Longitudinal Data and SAS: A Programmer's Guide; and SAS Functions by Example, as well as countless articles in medical and scientific journals.

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

What a frustrating trip!
This book is probably the best place to start if you want to learn SAS programming.
Knud Back
It's easy to understand, clear and concise, with plenty of examples and exercises.

Most Helpful Customer Reviews

53 of 54 people found the following review helpful By Peter Kwok on August 24, 2007
Format: Paperback
If you just want to casually gain some familiarity with SAS up to the level of Base Programming certification, then probably the Little SAS Book alone will be enough. (At least it worked for me.) That book is economically priced and is famous for being concise and clear. However, when you actually program in SAS or even prepare for the Advanced Programming certification, you will soon find yourself outgrow the "Little" book. Then you need another book like "Learning SAS by Example" to elevate you to the next level. This book is not only concise and clear, but also encyclopaedic and systematic. There are many good "programming by example" SAS books on the market. I am particularly impressed by this book's broad coverage of practical topics and their methodical treatments.

The book is divided into four parts.

Part 1 is a short introduction extended to details like priority of arithmetic operations and Program Data Vector-- stuff that not only beginners will find useful, but also more experienced programmers would not mind to keep as reference.

Part 2 drills on the DATA step. The chapters progress from file I/O, to creating data set, then creating formats and labels, and then writing conditionals and loops. This is just the logical order of a SAS program. Once you have the basics, then the book moves on to the next most common programming issues such as functions (dates, numeric, character), data subsetting, and arrays. These (plus half of Part 3) can essentially get you through the Base exam.

Part 3 covers mundane topics such as report customisation. All major means of data display, i.e., PROC PRINT (with PROC SORT), PROC FREQ, PROC MEANS, PROC TABULATE, PROC REPORT, and ODS, are individually introduced in their own chapters.
Read more ›
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
17 of 17 people found the following review helpful By vivat on August 29, 2008
Format: Paperback
When I started learning SAS from this book, I had two goals in mind:
1. Improve my SAS skills for a SAS programmer job.
2. Pass SAS Base certification exam.

I decided to use this book and not SAS Certification Prep guide because SAS certification Prep Guide wouldn't teach me how to program like Cody's book did. Cody's book gives lots of exercises to practice.

However, when I took a SAS practice exam, I felt Cody's book didn't prepare me enough in the following areas:
- reading raw data from external files;
- subsetting and combining datasets.

So I borrowed SAS Certification Prep Guide from a friend and read chapters on those topics. And I passed the exam.

I also agree with the other reviewer saying that Cody's exercises are rather simple. I found other Cody's book (Applied Statistics and the SAS programming language) more challenging and it contained answers to ALL exercises, not just odd-numbered; but maybe this was because it was my first SAS book.

All in all, I find this book very useful, because I haven't seen other book that would give you exercises along with solutions to half of them. Programming is like math: you need to practice in order to be good at it.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
11 of 11 people found the following review helpful By Duane Smith on June 4, 2008
Format: Paperback
I have used SAS only sparingly over the years, and had a basic knowledge from taking a beginners course about 3 years ago (3 days costing more than $2,000).

However, I learnt more sitting with Ron Cody's book over the last two weeks than I did on that course. This book is great for self-paced study to get an understanding of how SAS works.

Gripes? The fact that only every second question has an answer is annoying, but understandable (to a degree) given that the book can be used as a study tool for schools.

Overall, I'd definitely recommend this book for anyone wanting to be able to move forward with their SAS careers!
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
16 of 19 people found the following review helpful By Lekhak on September 13, 2010
Format: Kindle Edition Verified Purchase
Bought the Kindle Edition of this book.

1. It was very convenient. Received the book on my 'Kindle for PC' and started reading the book within 2 minutes of ordering - so faster than picking up a book in store. ;)

2. The formatting was well off. The kindle version has no indentations and all programs and input file data is listed in free flowing text format.

Here are a couple of examples... (Would have posted pics, but scared of the media rights police.)

a. The programs are listed as:
Statement_1; Statement_2; Statement_3;...

b. Input is listed with no line breaks:
Input_row_1 Input_row_2 Input_row_3...

c. Tables which should be listed as:
A1 B2 C3
D1 E2 F3
.. .. ..

are instead listed as:
A1 D1 B2 E2 C3 F3 .. .. ..

3. Contacted Amazon Customer Service who acknowledged the issue and offered a return (within 7 days of purchase - worked fine for me as I bought the book just yesterday) as can be expected from the #1 Customer Service in the online world. Not sure how accommodating they are for customers who do not open the book and find the issue within the 7 day limit - I myself have lots of new books on my bookshelf which I havent opened/read even after a year.

4. Ordered a hard copy of the same book. Did not wait on a refund for the Kindle edition. Guess Amazon CS will come through with this as always - will update this review once its all settled.

5. I was on a flow with the book and want to continue from where I left off ASAP. So I just paid $$$ to upgrade the shipping on this hard copy to 1 day. The reason could very well be that I was spoiled by the convenience offered by Kindle.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Customer Images

Most Recent Customer Reviews


What Other Items Do Customers Buy After Viewing This Item?