Better programming practice tips.

                                                  Better programming practice tips.
1. Header Description: It is very important to have a descriptive header inside a SAS program.

********************************************************************;
Program Name       : name.sas
Author             : Sarath Annapareddy
Date last Modified : Apr 02 2010 :
Purpose/Description: Macro to add titles and footnotes
Input Files        :
Output Files       :
Macros Used        :
Notes              :
*********************************************************************;

2. Use proper indentation: New step (e.g. data step, proc sort, proc sql, etc) must always start with no indentation, first line in any step must have one tab indentation line and after if (or similar) statements we must have one additional tab indentation before the next if (or similar) statements.

3. UPCASE: Always use uppercase variable name and uppercase dataset names (including temporary datasets created in the program)

4. Dataset Names: Never use same dataset name for input and output datasets.

5. Comments: Comments are used to make your program easier to read and edit. Use the comment statement anywhere in a SAS program to document the purpose of the program. Nothing is more frustrating as to return to a program written months ago and not being able to figure out what you did and why you did it. Also, if someone else needs to look over your program, the task is made much easier, if the code is commented.

6. Create a Macro: If you think code will be used in multiple programs, create a macro. Do not try to do multiple things in one macro; chances are if something is broken in the macro, other programmer will not use that macro in their program.

7. Give some meaningful name to the temporary datasets.





Comments

  1. these sample resumes are very helpful. thanks a lot for the post!

    ReplyDelete
  2. i am not able to download the file yaar..can u plz give the guidelines to download

    ReplyDelete
  3. I couldn't find any sample resumes. Can you please send them to sugan9@gmail.com

    ReplyDelete
  4. plz can u send me banking SAS proj for loans
    sanjay.palda@gmail.com send me this mail id

    ReplyDelete
  5. I couldn't find any sample resumes. Can you please send them to malathim@gmail.com

    ReplyDelete
  6. where are the sample resumes?

    ReplyDelete
  7. plz can u send me some too on fpath.sas@gmail.com as i am not been able to see anything.

    ReplyDelete
  8. Hi am regularly following your thoughts through this site. Its awesome work..
    I didn't find any resumes here...would you please send them to alwaysadvith@gmail.com ...
    thank you...

    ReplyDelete
  9. i couldnt find the sample resume..can u please send them to rajioruganti22@gmail.com...thank u....

    ReplyDelete
  10. Its really a nice tips you have shared, which help us to improve my knowledge in the field of programing. Thanks for sharing this informative post.

    learn programming online

    ReplyDelete
  11. Hi All
    We are hiring SAS Admin @ San Ramon, CA if interested drop a mail to hr@texaras.com

    ReplyDelete

Post a Comment

Popular posts from this blog

SAS Interview Questions and Answers: CDISC, SDTM and ADAM etc

Comparing Two Methods for Removing Formats and Informats in SAS: DATA Step vs. PROC DATASETS

Studyday calculation ( --DY Variable in SDTM)