Skip to Main Content
SAS 9.4 Graph Template Language, 3rd Edition
book

SAS 9.4 Graph Template Language, 3rd Edition

by SAS Documentation
August 2014
Intermediate to advanced content levelIntermediate to advanced
652 pages
20h 38m
English
SAS Institute
Content preview from SAS 9.4 Graph Template Language, 3rd Edition
/* Generate the commission bar chart. */
barchart category=empID
/* Use IFN to compute the commission. */
response=eval(ifn(totalSales >= 120000,
totalSales * 0.05, /* 5% if TRUE */
totalSales * 0.025)) / /* 2.5% if FALSE */
name="Commission" legendlabel="Commission"
barwidth=0.3 yaxis=y2 discreteoffset=0.2
fillattrs=graphData2;
/* Add an axis table that shows the sales unit for each
employee. */
innermargin / align=bottom;
axistable x=empID
/* Use IFC to convert the codes to meaningful
values. */
value=eval(ifc(salesUnit = 'P',"Products",
"Services"));
endinnermargin;
discretelegend "Sales" "Commission";
endlayout;
endgraph;
end;
run; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS 9.4 Language Reference, 6th Edition

SAS 9.4 Language Reference, 6th Edition

SAS Institute

Publisher Resources

ISBN: 9781629593111