SAS Programming Language – Inconsistencies

November 10, 2013 Billy Aung Myint No comments

Here are two SAS programs , data and sort

data work.comp;
	set myLib.sales;
	Bonus=500;
	Compensation=sum(Salary,Bonus);
	BonusMonth=month(Hire_Date);
run;

Note that temporary library , work , comes before the permanent library from where the data comes from , myLib. And each is ended with ;

Here is the sort proc

proc sort data=myLib.sales
          out=work.sales;
     by descending Country descending Salary;
run;

Here is the opposite of the above. The permanent library , myLib , comes before the temporary library , work. And there are no ; after myLib.sales …

Why? If anyone knows , pls post below.. Thanks!

Regards
Billy