12.07.2015 Views

Tips for Manipulating Data - NESUG

Tips for Manipulating Data - NESUG

Tips for Manipulating Data - NESUG

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>NESUG</strong> 15Beginning TutorialsA Few Last TidbitsHere are a few bullets with ideas that may makeprogramming or upkeep of code easier:§ Always name your data sets. In other words, do notuse the default, or last, data set. When adding newsteps to a program, it is easy to suddenly find thewrong data set being analyzed.§ Always indent code, with DATA, PROC, and RUNstatements in the leftmost columns and proceedingstatements indented accordingly.§ Use a RUN statement to signify the end of each PROCor DATA step. When using Display Manager, if a RUNstatement is missing from the final step, that step is notexecuted.§ Always use the manual or OnLine Help.§ Simple programs are easier to review and update.§ Never think a question is stupid. Ask <strong>for</strong> help.Writing good SAS code is not difficult. Remember that ittakes time to learn how to do it well and the only way to getbetter at it is to code.ReferencesScerbo, M., Dickstein, C., and Wilson, A. (2001). HealthCare <strong>Data</strong> and the SAS System, Cary, NC: SAS Institute,Inc.Contact In<strong>for</strong>mationFor more in<strong>for</strong>mation contact:Marge ScerboCHPDM/UMBC1000 Hilltop CircleSocial Science Room 309Baltimore, MD 21250Email: scerbo@chpdm.umbc.edu10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!