Commenting in SAS

I think the best way to start a SAS-program is to do a comment as described by the template below.

/********************************************************************************
Author        : 
Creation date : ddmmmyyy
Description   : 
Example       :
*********************************************************************************
Input
-----
&InputMacro   : Macrovariable with inputs.
InputDS       : Tells what dataset to do the processing on.
*********************************************************************************
Output
------
&OutputMacro  : Macrovariable with the output result.
OutputDS      : Dataset with the output result.
********************************************************************************/

Comments should also be done above each datastep or procedure, And changes to the programs should be contained in a versioning system eg like Subversion (SVN).If you do not have a versioning system, then I think the comments should be something like the comments below.

/* AUTHOR <ISODATE>: Changed one thing to another. */

 

Leave a Reply

Your email address will not be published.