These are some of the better programming practice tips in SAS :
Let us discuss some of the better programming practice tips in SAS that can help the coders when it comes to SAS programming
1) First comes the Header section:
The first and foremost important thing is to have a descriptive header inside a SAS program.
********************************************************************;
Program Name : name.sas
Author : Pallav Lodhia
Date last Modified : Apr 02 2010 :
Purpose/Description: Macro to add titles and footnotes
Input Files :
Output Files :
Macros Used :
Notes :
*********************************************************************;
2) The proper use of indentation: The new step must usually start with no indentation. The first line in any step must have one tab indentation line.
After one if statement we must have one tab indentation line before the next if statement.
3) UPCASE: Always use the uppercase variable name and the uppercase dataset names
4) Dataset Names: You should never use the same dataset names for the input and the output dataset names.
5) Comments: Comments are usually used to make your program easier to read as well as edit. The comment statement is used to document the purpose of the program. It would become more frustrating if you are unable to figure out what you did and why you did in the program written months ago. It would also become for the other user who wants to look over your program.
6) Create a Macro: When the code is to be used in multiple programs, better create a Macro. Do not try to do multiple things in one Macro. There are the chances if something is broken in program, then other programmer won’t use in their program.
7) Always give the that has some meaning to the temporary data sets.
Hope so it would work for you too. What are your suggestions? Please share your views if you have any!!
----------->>>>>SAS training
Epoch Research Insitute Links:
Email us: info@epoch.co.in
SAS Training & Placement
Programs with Internship: Epoch Research Institute India Largest and Oldest
#SASTraining Institute (#epochsastraining)
EPOCH RESEARCH INSTITUTE OFFERS:
Authorized SAS TRAINING | SAS
CERTIFICATION | SOFTWARE PURCHASE | BUINESS CONSULTING | TECHNICAL SUPPORT ON
SAS || SAS STAFFING SOLUTION
Label:
#SASELEARNING,#SASELEARNING,#SASONLINETRAINING,
#SASONLINETRAININGFORBEGINNERS,#LEARNSASPROGRAMMINGONLINE,
#SASCLINICALONLINETRAINING,#SASBASEONLINETRAINING
#BIGDATASASTRAININGEPOCH,#SASBIGDATATRAINING
#EPOCHRESEARCHINSTITUTE, #SASTRAINING, EPOCH SAS FEEDBACK,
No comments:
Post a Comment