September 2019
Beginner to intermediate
346 pages
7h 35m
English
The biggest drawback of ODS is that you may never see how the data has been generated. Think about the Dealership data. It doesn't have the total revenue column. Yes, we have generated the total revenue in previous codes. However, can we send the formula of total revenue to Excel so that, for a derived column, the user can see the underlying formula? Let's try it using the following code:
ODS Excel File = '/folders/myfolders/Formula.xlsx';Options Obs=5;Proc Report Data=Dealership; Column Date Car Units Avg_Price Total_Revenue; Define Units / Display; Define Avg_Price / Display; Define Total_Revenue / "Total_Revenue" Computed Format=Dollar10.2 Style={TagAttr="Formula:(RC[-2]*RC[-1])"}; Compute Total_Revenue; Total_Revenue=Units*Avg_Price; ...
Read now
Unlock full access