Did you know that you can objectively measure the worth of any SAS book you
are considering purchasing by using a simple program that I developed?
After writing the print edition of my book, Did You Know That? Essential Hacks for Clever SAS Programmers, I
was inspired to share a program that SAS professionals can use to objectivey measure
the worth of my book of SAS hacks. The program uses US dollar$ as the unit of measure and weighs the monetary
benefits of the hacks against the cost of the book against the income of the
SAS programming professional.
The SAS program that follows is set up to evaluate the print edition of my book. Change the SALARY, GOODTIPS, and
TIMESAVED macro variables to evaluate whether Did You Know That? Essential Hacks for SAS Programmers is
right for y-o-u.
And, just as importantly, save this program so that you
can modify the cost of the book and the book's title when evaluating any other
book on SAS programming.
/*Michael A. Raithel's SAS Book Evaluation Program*/
%let SALARY=50000; /* Your yearly salary */
%let GOODTIPS=2;
/* Number of good tips that will save you time at work*/
%let TIMESAVED=15; /* Estimated number of mintes each tip
will save you */
Data tipworth;
length bigline $130;
label bigline = "Here are the points to
consider:";
/* Perform complicated calculations */
Hourly_Salary = round(&SALARY/2080,.01);
Minute_Salary = round((Hourly_Salary / 60),.01);
Tot_Time_Saved = &GOODTIPS * &TIMESAVED;
Cost_Per_Tip = 9.95 / &GOODTIPS;
Total_Salary_Saved = Tot_Time_Saved * Minute_Salary;
Total_Net_Salary_Saved = (Tot_Time_Saved * Minute_Salary)
- 9.95;
/* Generate a Spiffy Report */
bigline = "You found &GOODTIPS tips in the book
to be useful for your job.";
output;
bigline = "You estimated that the useful tips in the
book saved you &TIMESAVED minutes per tip.";
output;
bigline = "You make a handsome salary of $
&SALARY per year.";
output;
bigline = "So, your hourly salary is $" ||
Hourly_Salary || ".";
output;
bigline = "Which means you make $" ||
Minute_Salary || " per minute.";
output;
bigline = "Your cost per useful tip in the book was
$" || Cost_Per_Tip || ".";
output;
bigline = "The total amount of salary you saved from
using the tips was $" || Total_Salary_Saved || ".";
output;
bigline = "But, you must subtract the cost of the
book ($9.95) to realize your true savings of $" || Total_Net_Salary_Saved
|| ".";
output;
run;
proc print data = tipworth noobs label;
var bigline;
Title1 "Analyzing the Merits of Purchasing";
Title2 "Michael A. Raithel's";
Title3 "New e-book:";
Title4 "Did You Know That? Essential Hacks for Clever SAS
Programmers";
Footnote1 "Amazon Print Edition: https://tinyurl.com/y83aleb4";
run;
Best of luck in all of your SAS endeavors!
----MMMMIIIIKKKKEEEE
(aka Michael A. Raithel)
Amazon Author page: https://www.amazon.com/Michael-A.-Raithel/e/B001K8GG90/ref=ntt_dp_epwbk_0
Amazon Author page: https://www.amazon.com/Michael-A.-Raithel/e/B001K8GG90/ref=ntt_dp_epwbk_0
No comments:
Post a Comment