1. libname is to create a library for storing format, with the library name as "library". The book also confused me when it define library name as "library". It's better use some string other than the keywords, e.g. libname mylib "...... 2. yes, (proc format library=) and (proc format lib=) are same thing. lib= is abbrevation for library= 3. FMTLIB is used for display format in a catalog only 4. for data company.budget ....part, if first.dept then payroll=0 ; /*for the first row of each group of dept variable, set payroll=0. NOTE this IF is for condition*/ payroll+yearly; /*equivallent to payroll=payroll+yearly, i.e. to accumulate yearly to payroll variable. NOTE this applies to any rows*/ if last.dept; /*only keep the last row of each group of dept variable. NOTE this IF is for subsetting*/
... View more