intro to proc report with excel output

43
Intro to Proc Report with Excel Output Barbara B. Okerson WellPoint West Region Client Reporting & Analytics

Upload: fleur

Post on 25-Feb-2016

100 views

Category:

Documents


1 download

DESCRIPTION

Intro to Proc Report with Excel Output. Barbara B. Okerson WellPoint West Region Client Reporting & Analytics. Presentation Outline. What is Proc Report? Syntax Customization Writing to Excel Example with healthcare data. Proc Report. SAS tool to summarize and display data - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Intro to Proc Report with Excel Output

Intro to Proc Report with Excel Output

Barbara B. OkersonWellPoint West Region Client

Reporting & Analytics

Page 2: Intro to Proc Report with Excel Output

2

Presentation Outline

•What is Proc Report?

•Syntax

•Customization

•Writing to Excel

•Example with healthcare data

Page 3: Intro to Proc Report with Excel Output

3

Proc Report

•SAS tool to summarize and display data

•Flexible and customizable

•Use Proc Report for:– Summary Reports– Statistics– Detail Reports– Compute Blocks

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 4: Intro to Proc Report with Excel Output

4

Proc Report Syntax

PROC REPORT DATA= datasetname <options>;

COLUMN variable list and column specifications;

DEFINE column / column usage and attributes;

COMPUTE column; compute block statements; ENDCOMP;

RUN;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 5: Intro to Proc Report with Excel Output

5

Using the COLUMN Statement

Column statement can be used to:– Identify fields of interest– Add headers– Group fields– Attach statistics to fields

Fields must be listed in the order to be displayed

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 6: Intro to Proc Report with Excel Output

6

Using the DEFINE Statement

Lists column and attributes (attributes after / )

The type attribute:– DISPLAY - displays the value of the field (default for character fields).– GROUP - Consolidate observations using this field.– ANALYSIS - Used in calculations with a statistic (default for numeric

fields).– COMPUTED- Specifies a field that is to be created in a compute block.– ORDER - Sorts the data and forms groups for summary statistics,– ACROSS - Used to create groups across rather than down the page.

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 7: Intro to Proc Report with Excel Output

7

Using the DEFINE Statement (continued)

Other DEFINE statement attributes:– Format – specifies how column is formatted– Width – width of column– Noprint – do not display this column– Flow – wrap wide text– Statistic – statistic to be calculated– Style – use style elements with the report

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 8: Intro to Proc Report with Excel Output

8

Sample Report Syntax

title1 'Using Proc Report';title2 'Sample Report';

proc report data=sample nowd;columns month group med_members rx_members;define month/"Report Month";define group / "Group Number";define med_members / "Medical Members";define rx_members / "Pharmacy Members";

run;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 9: Intro to Proc Report with Excel Output

9

Output

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 10: Intro to Proc Report with Excel Output

10

Report Code with Formats and HTML Output ods html style=statistical; title1 'Using Proc Report';title2 'Sample Report';

proc report data=sample nowd;columns month group med_members rx_members;define month/"Report Month“ f=YYMMn6.;define group / "Group Number";define med_members / "Medical Members“ f=comma7.;define rx_members / "Pharmacy Members“ f=comma7.;

run;ods html close;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 11: Intro to Proc Report with Excel Output

11

Sample Report Output with Formatting

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 12: Intro to Proc Report with Excel Output

12

Using the COMPUTE Statement

The COMPUTE statement can be used to:– modify values within a column – insert lines of text into the report– to create columns– control the content of a column

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 13: Intro to Proc Report with Excel Output

13

Add a COMPUTE to Sample Report

proc report data=sample nowd;columns month group med_members rx_members ratio ;define month/"Report Month";define group / "Group Number";define med_members / analysis mean "Medical Members";define rx_members / analysis mean "Pharmacy Members";define ratio/computed;

compute ratio; ratio = rx_members.mean/med_members.mean;endcompute;run;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 14: Intro to Proc Report with Excel Output

14

New Sample Report

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 15: Intro to Proc Report with Excel Output

15

Creating Subtotals and Totals in Proc Report

ods html style=seaside;title1 'Using Proc Report';title2 'Sample Report';

proc Report data=sample nowd;columns group month med_members rx_members ;define group / group "Group Number";define month/ order "Report Month" f=yymmn6.;define med_members / "Medical Members" f=comma6.;define rx_members / "Pharmacy Members" f=comma6.;break after group/summarize;rbreak after/summarize;run;

ods html close;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 16: Intro to Proc Report with Excel Output

16

Report With Subtotals and Totals

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 17: Intro to Proc Report with Excel Output

17

Group and Order

•Order fields• ORDER=FORMATTED Sorts by a field’s formatted values

• ORDER=DATA Sorts in the order that the field values are encountered in the data set

• ORDER=INTERNAL Sorts by a field’s unformatted values

• ORDER=FREQ Sorts by frequency counts of the field values

•Group fields – consolidate observations under grouped fields

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 18: Intro to Proc Report with Excel Output

18

Additional Customizations

•Titles and Footnotes•Writing to Microsoft Excel•Splitting and spanning column headers•Number formats•Modifying cell widths•Run date•Line color•Readability option

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 19: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 19

SUBGROUPPaid

Month# of

Subscribers# of

Members Inpatient Outpatient Professional

MedicalPaid

Amount Pharmacy Dental Vision TotalD001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 0.00 0.00 $70,560.89D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 0.00 0.00 $95,431.95D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 0.00 0.00 $68,274.95D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 0.00 0.00 $94,952.56D003 201211 1 2 0.00 ($484.84) 0.00 ($484.84) 0.00 0.00 0.00 ($484.84)D003 201212 1 1 0.00 $30.00 $42.57 $72.57 0.00 0.00 0.00 $72.57D004 201211 435 1,002 $15,425.73 $34,549.57 $80,725.13 $130,700.43 $37,846.83 0.00 0.00 $168,547.26D004 201212 444 1,022 $6,371.27 $97,904.09 $99,527.87 $203,803.23 $43,066.26 0.00 0.00 $246,869.49D005 201211 157 336 0.00 $7,073.37 $14,570.07 $21,643.44 $12,073.21 0.00 0.00 $33,716.65D005 201212 162 341 $5,730.06 $9,189.49 $39,474.00 $54,393.55 $22,368.11 0.00 0.00 $76,761.66D006 201211 240 619 ($3,563.49) $40,886.51 $68,142.38 $105,465.40 $74,125.86 0.00 0.00 $179,591.26D006 201212 96 188 0.00 $4,219.50 $14,908.22 $19,127.72 $4,109.04 0.00 0.00 $23,236.76D007 201211 25 52 $2,737.00 $611.15 $12,366.13 $15,714.28 $3,842.65 0.00 0.00 $19,556.93D007 201212 26 53 0.00 $1,950.26 $9,365.65 $11,315.91 $2,080.27 0.00 0.00 $13,396.18D008 201211 18 49 $33,225.82 $843.94 $7,319.00 $41,388.76 $1,232.95 0.00 0.00 $42,621.71D008 201212 17 48 0.00 $3,982.00 $19,721.13 $23,703.13 $5,071.86 0.00 0.00 $28,774.99D009 201211 11 26 0.00 $997.05 $1,585.82 $2,582.87 $740.48 0.00 0.00 $3,323.35D009 201212 11 26 0.00 $812.64 $2,601.77 $3,414.41 $435.58 0.00 0.00 $3,849.99D010 201211 50 102 0.00 $414.34 $6,137.90 $6,552.24 $4,096.83 0.00 0.00 $10,649.07D010 201212 49 100 0.00 $6,392.27 $2,390.63 $8,782.90 $3,274.66 0.00 0.00 $12,057.56D011 201211 26 64 0.00 $3,550.82 $2,312.25 $5,863.07 $1,908.87 0.00 0.00 $7,771.94D011 201212 26 68 0.00 $7,537.12 $7,680.21 $15,217.33 $5,830.36 0.00 0.00 $21,047.69D012 201211 37 82 0.00 $55.50 $408.88 $464.38 0.00 0.00 0.00 $464.38D012 201212 36 80 0.00 $1,433.25 $1,537.67 $2,970.92 ($4.49) 0.00 0.00 $2,966.43

CXXXXX Sample CompanyCONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING BY MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012RIM KKKKK

Total Paid

The Anthem Blue Cross and Blue Shield Companies are independent licensees of the Blue Cross and Blue Shield Association.Group Number(s) - CXXXXX selected segments

Run Date = 03/06/2013

Medical Membership Medical

This confidential information should not be distributed without Anthem's prior written consent and should only be used to review health care utilization.

Page 20: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 20

Proc Report Code Statements

proc report nowd data=sample2 split='/';columns subgroup month ('-Medical Membership-' contracts members) ('-Total Paid-‘ ('-Medical-' inpatient_paid outpatient_paid professional_paid tot_med ) pharmacy dental vision total); define subgroup / order order=data display format =$10. style=[cellwidth= .85 in];define month / order display 'Paid Month' format=$6.;define contracts/ display '# of Subscribers' style=[tagattr="format:#,###" cellwidth= .9 in]; define members / display '# of Members' style=[tagattr="format:#,###"];define inpatient _paid/ display 'Inpatient'

style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};define outpatient_paid / display 'Outpatient'

style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;' cellwidth= 1 in}; define professional _paid/ display 'Professional'

style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;' cellwidth= 1.1 in}; define tot_med/ display 'Medical/Paid/Amount'

style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};define pharmacy/ display 'Pharmacy'

style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};define dental / display 'Dental' style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};define vision / display 'Vision' style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};define total / display 'Total' style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};run;

Page 21: Intro to Proc Report with Excel Output

21

Spanning Headers

Columns subgroup month

('-Medical Membership-' contracts members)

('-Total Paid-‘ ('-Medical-' inpatient_paid outpatient_paid professional_paid tot_med ) pharmacy dental vision total);

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 22: Intro to Proc Report with Excel Output

22

Style Attributes

define contracts/ display '# of Subscribers' style=[tagattr="format:#,###" cellwidth= .9 in];

define members / display '# of Members‘ style=[tagattr="format:#,###"];

define inpatient _paid/ display 'Inpatient‘ style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;'};

define outpatient_paid / display 'Outpatient‘ style(column)={tagattr='format:$#,##0.00;[Red]($#,##0.00);[Black]0.00;' cellwidth= 1 in};

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 23: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 23

Peripheral Codeods Tagsets.ExcelXP file='R:\BOkerson\WellPoint SAS Users Group\Proc Report March 2013\new_style3.xml' style=minimal options(embedded_titles='yes' embedded_footnotes='yes');ods tagsets.excelxp options(sheet_name = 'Sample');

title1 j=c 'CXXXXX Sample Company';title2 j=c 'CONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING BY MONTH';title3 j=c 'Paid Period: Nov 01, 2012 through Dec 31, 2012';title4 j=c 'RIM KKKKK';

Proc report……

footnote2 j=c "This confidential information should not be distributed without Anthem's prior written consent and should only be used to review health care utilization.";footnote3 j=c "The Anthem Blue Cross and Blue Shield Companies are independent licensees of the Blue Cross and Blue Shield Association.";footnote4 j=c "Group Number(s) - CXXXXX selected segments";footnote5 j=l "Run Date = &rundate";

ODS Tagsets.ExcelXP close;

Page 24: Intro to Proc Report with Excel Output

24

Titles and Footnotes

•Justification (j=c)

•Other options– Height– Font– Color– Background color– Underline

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 25: Intro to Proc Report with Excel Output

25

Writing to Excel

ODS tagsets.excelxp file='R:\bokerson\Sample\CXXXXX_SampleCompany_MonRpt_EDW_RIMKKKKK_201211_201212.xml‘ style=minimal options(embedded_titles='yes‘ embedded_footnotes='yes');

ODS tagsets.excelxp options(sheet_name = ‘Sample');

…….report statements……

ODS tagsets.excelxp close;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 26: Intro to Proc Report with Excel Output

26

Setting the Style and Destination Type

ODS tagsets.excelxp …. style=minimal ….

•ODS style – collection of elements

•ODS style attributes –e.g. font, color, width

•ODS Tagsets – associate template with destination

•ODS ExcelXP Tagset Destination – output in Microsoft’s SpreadsheetML XML format

•Combine style and tagset

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 27: Intro to Proc Report with Excel Output

27

Style=seaside

•Bolded title and headers•Shaded background for title cells•Colored grid lines

| FOR INTERNAL USE ONLY | DO NOT COPY

SUBGROUP

Paid Month

# of Subscribe

rs

# of Members Inpatient Outpatient Professio

nal

MedicalPaid

AmountPharmacy Dental Vision Total

D001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 0.00 0.00 $70,560.89

D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 0.00 0.00 $95,431.95

D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 0.00 0.00 $68,274.95

D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 0.00 0.00 $94,952.56

Medical Membership Medical

CXXXXX Sample CompanyCONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING AND MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012RIM KKKKK

Total Paid

Page 28: Intro to Proc Report with Excel Output

28

Style=default

•Shaded backgrounds•Italic and bolded header•White grid lines

| FOR INTERNAL USE ONLY | DO NOT COPY

SUB GROUP

Paid M ont

h

# of Subscri

bers

# of Memb

ers InpatientOutpatien

tProfessio

nal

MedicalPaid

AmountPharma

cyDenta

l Vision TotalD0 01 201 211 138 303 $4, 19 0.4 2 $34 ,5 06. 14 $17 ,2 44. 16 $55 ,9 40. 72 $14 ,6 20. 17 0. 00 0. 00 $70 ,5 60. 89D0 01 201 212 137 309 $35 ,5 12. 34 $11 ,4 19. 26 $34 ,7 61. 10 $81 ,6 92. 70 $13 ,7 39. 25 0. 00 0. 00 $95 ,4 31. 95D0 02 201 211 36 65 $25 ,8 24. 28 $12 ,8 30. 69 $20 ,6 28. 16 $59 ,2 83. 13 $8, 99 1.8 2 0. 00 0. 00 $68 ,2 74. 95D0 02 201 212 36 65 $30 ,0 67. 43 $29 ,2 50. 02 $21 ,2 13. 57 $80 ,5 31. 02 $14 ,4 21. 54 0. 00 0. 00 $94 ,9 52. 56

Medical Medical

CXXXXX Sample CompanyCONTRA CTS, MEM BERSHIP AN D PAID AM OUN T BY SETTING A ND M ONTH

Pai d Period: Nov 01, 2012 through D ec 31, 2012RIM KK KKK

Total Paid

SUBGROUP

Paid Mont

h

# of Subscri

bers

# of Memb

ers InpatientOutpatien

tProfessio

nal

MedicalPaid

AmountPharma

cyDenta

l Vision TotalD001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 0.00 0.00 $70,560.89D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 0.00 0.00 $95,431.95D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 0.00 0.00 $68,274.95D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 0.00 0.00 $94,952.56

Medical Medical

CXXXXX Sample CompanyCONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING AND MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012RIM KKKKK

Total Paid

Page 29: Intro to Proc Report with Excel Output

29

Available SAS Styles

To view available styles run the following code:

proc template; list styles; run;

SAS writes the list of available styles in the output window.

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 30: Intro to Proc Report with Excel Output

30

Add Group And Order

Order:

define subgroup / order order=data display format =$10. style=[cellwidth= .85 in];

define month / order display 'Paid Month' format=$6.;

Group:

define subgroup / group order=data display format =$10. style=[cellwidth= .85 in];

define month / order display 'Paid Month' format=$6.;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 31: Intro to Proc Report with Excel Output

31

Order and Group Output

Corner of original report.

Corner of report with subgroup as group field.

| FOR INTERNAL USE ONLY | DO NOT COPY

SUBGROUPPaid

Month# of

Subscribers# of

MembersD001 201211 138 303D001 201212 137 309D002 201211 36 65D002 201212 36 65D003 201211 1 2D003 201212 1 1

SUBGROUPPaid

Month# of

Subscribers# of

MembersD001 201211 138 303

201212 137 309D002 201211 36 65

201212 36 65D003 201211 1 2

201212 1 1

Page 32: Intro to Proc Report with Excel Output

32

Automatic Run Date

•Store date in macro field:

data _null_;today_date=today();CALL SYMPUT('rundate',put(today_date,mmddyy10.));run;

•Use macro field in footnote:

footnote5 j=l "Run Date = &rundate";

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 33: Intro to Proc Report with Excel Output

33

Other Enhancements

•Line color

•Highlight every other row

•Write to multiple worksheets

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 34: Intro to Proc Report with Excel Output

34

Proc Template to Modify Line Color

proc template;define style styles.test; parent=styles.minimal; style table from table/ bordercolor =blue;end;run;

ods Tagsets.ExcelXP file='R:\BOkerson\WellPoint SAS Users Group\new_style4x.xml' style=test options(embedded_titles='yes' embedded_footnotes='yes' );

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 35: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 35

SUBGROUP

Paid Month

# of Subscribers

# of Members Inpatient Outpatient Professional

MedicalPaid

Amount Pharmacy Dental Vision TotalD001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 0.00 0.00 $70,560.89D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 0.00 0.00 $95,431.95D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 0.00 0.00 $68,274.95D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 0.00 0.00 $94,952.56D003 201211 1 2 0.00 0.00 0.00 0.00 0.00D003 201212 1 1 0.00 $30.00 $42.57 $72.57 0.00 0.00 0.00 $72.57D004 201211 435 1,002 $15,425.73 $34,549.57 $80,725.13 $130,700.43 $37,846.83 0.00 0.00 $168,547.26D004 201212 444 1,022 $6,371.27 $97,904.09 $99,527.87 $203,803.23 $43,066.26 0.00 0.00 $246,869.49

The Anthem Blue Cross and Blue Shield Companies are independent licensees of the Blue Cross and Blue Shield Association.Group Number(s) - CXXXXX selected segments

Medical Membership Medical

This confidential information should not be distributed without Anthem's prior written consent and should only be used to review health care

CXXXXX Sample CompanyCONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING AND MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012RIM KKKKK

Total Paid

Page 36: Intro to Proc Report with Excel Output

36

Compute Group Code for Line Shading

Compute subgroup; line_count+1; if mod(line_count,2)=0 then do; call define (_row_, "style", "style=[background=cxF2F2DF]"); end; Endcomp;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 37: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 37

SUBGROUPPaid

Month# of

Subscribers# of

Members Inpatient Outpatient Professional

MedicalPaid

Amount Pharmacy Dental Vision TotalD001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 0.00 0.00 $70,560.89D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 0.00 0.00 $95,431.95D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 0.00 0.00 $68,274.95D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 0.00 0.00 $94,952.56D003 201211 1 2 0.00 0.00 0.00 0.00 0.00D003 201212 1 1 0.00 $30.00 $42.57 $72.57 0.00 0.00 0.00 $72.57D004 201211 435 1,002 $15,425.73 $34,549.57 $80,725.13 $130,700.43 $37,846.83 0.00 0.00 $168,547.26D004 201212 444 1,022 $6,371.27 $97,904.09 $99,527.87 $203,803.23 $43,066.26 0.00 0.00 $246,869.49D005 201211 157 336 0.00 $7,073.37 $14,570.07 $21,643.44 $12,073.21 0.00 0.00 $33,716.65D005 201212 162 341 $5,730.06 $9,189.49 $39,474.00 $54,393.55 $22,368.11 0.00 0.00 $76,761.66D006 201211 240 619 $40,886.51 $68,142.38 $105,465.40 $74,125.86 0.00 0.00 $179,591.26D006 201212 96 188 0.00 $4,219.50 $14,908.22 $19,127.72 $4,109.04 0.00 0.00 $23,236.76D007 201211 25 52 $2,737.00 $611.15 $12,366.13 $15,714.28 $3,842.65 0.00 0.00 $19,556.93D007 201212 26 53 0.00 $1,950.26 $9,365.65 $11,315.91 $2,080.27 0.00 0.00 $13,396.18D008 201211 18 49 $33,225.82 $843.94 $7,319.00 $41,388.76 $1,232.95 0.00 0.00 $42,621.71D008 201212 17 48 0.00 $3,982.00 $19,721.13 $23,703.13 $5,071.86 0.00 0.00 $28,774.99D009 201211 11 26 0.00 $997.05 $1,585.82 $2,582.87 $740.48 0.00 0.00 $3,323.35D009 201212 11 26 0.00 $812.64 $2,601.77 $3,414.41 $435.58 0.00 0.00 $3,849.99D010 201211 50 102 0.00 $414.34 $6,137.90 $6,552.24 $4,096.83 0.00 0.00 $10,649.07D010 201212 49 100 0.00 $6,392.27 $2,390.63 $8,782.90 $3,274.66 0.00 0.00 $12,057.56D011 201211 26 64 0.00 $3,550.82 $2,312.25 $5,863.07 $1,908.87 0.00 0.00 $7,771.94D011 201212 26 68 0.00 $7,537.12 $7,680.21 $15,217.33 $5,830.36 0.00 0.00 $21,047.69D012 201211 37 82 0.00 $55.50 $408.88 $464.38 0.00 0.00 0.00 $464.38D012 201212 36 80 0.00 $1,433.25 $1,537.67 $2,970.92 0.00 0.00 $2,966.43

. . .

The Anthem Blue Cross and Blue Shield Companies are independent licensees of the Blue Cross and Blue Shield Association.Group Number(s) - CXXXXX selected segments

Run Date = today()

Medical Membership Medical

This confidential information should not be distributed without Anthem's prior written consent and should only be used to review health care

CXXXXX Sample CompanyCONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING AND MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012RIM KKKKK

Total Paid

Page 38: Intro to Proc Report with Excel Output

38

Code for Multiple Sheets with By-Value

ods Tagsets.excelxp file='R:\BOkerson\totals2.xml' style=minimal options(embedded_titles='yes' embedded_footnotes='yes' );ods tagsets.excelxp options(sheet_name = '#byval(subgroup)');

proc Report nowd data=sample3 headline headskip split='/';columns ('-#byval(Subgoup)-'month ('-Medical Membership-' contracts members) ('-Total Paid-' ('-Medical-' inpatient_paid outpatient_paid professional_paid tot_med) pharmacy )); define month / order 'Paid Month' format=$6.;..........................

by subgroup;run;ODS Tagsets.excelxp close;

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 39: Intro to Proc Report with Excel Output

39

Proc Report By Value Output

| FOR INTERNAL USE ONLY | DO NOT COPY

Page 40: Intro to Proc Report with Excel Output

40

Add a Logo to Proc Report Output

•MSOffice2K_x tagset• Download from

http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html

• Run the code before running Proc Report

•WellPoint logo in upper left corner

•Optionsimage_path="R:\bokerson\wellpoint_logo.gif"image_height="45" image_width="90"

|

Page 41: Intro to Proc Report with Excel Output

41

MedicalPaid

AmountD001 201211 138 303 $4,190.42 $34,506.14 $17,244.16 $55,940.72 $14,620.17 $70,560.89 D001 201212 137 309 $35,512.34 $11,419.26 $34,761.10 $81,692.70 $13,739.25 $95,431.95 D002 201211 36 65 $25,824.28 $12,830.69 $20,628.16 $59,283.13 $8,991.82 $68,274.95 D002 201212 36 65 $30,067.43 $29,250.02 $21,213.57 $80,531.02 $14,421.54 $94,952.56 D003 201211 1 2 $0.00 ($484.84) $0.00 ($484.84) $0.00 ($484.84)D003 201212 1 1 $0.00 $30.00 $42.57 $72.57 $0.00 $72.57 D004 201211 435 1002 $15,425.73 $34,549.57 $80,725.13 $130,700.43 $37,846.83 $168,547.26 D004 201212 444 1022 $6,371.27 $97,904.09 $99,527.87 $203,803.23 $43,066.26 $246,869.49

Run Date = 05/13/2013

This confidential information should not be distributed without Anthem's prior written consent and should only be used to review health care utilization.

The Anthem Blue Cross and Blue Shield Companies are independent licensees of the Blue Cross and Blue Shield Association.

Group Number(s) - CXXXXX selected segments

Professional Pharmacy Total

CXXXXX Sample Company

CONTRACTS, MEMBERSHIP AND PAID AMOUNT BY SETTING AND MONTH

Paid Period: Nov 01, 2012 through Dec 31, 2012

RIM KKKKK

Subgroup Paid Month # of Subscribers

# of Members Inpatient Outpatient

Total PaidMedical Membership Medical

Page 42: Intro to Proc Report with Excel Output

| FOR INTERNAL USE ONLY | DO NOT COPY 42

Questions???

Page 43: Intro to Proc Report with Excel Output

43

Contact Information

Barbara B. Okerson, Ph.D Senior Health Information Consultant, West Region Client Reporting & AnalyticsWellPoint Health Care AnalyticsPhone: 804-662-5287 Email: [email protected]

| FOR INTERNAL USE ONLY | DO NOT COPY