20130820: the useful codes from sas2