BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anil2
Fluorite | Level 6

ODS PDF FILE="E:\RF_CCDS\overall_Helpdesk_Tickets.pdf" startpage=no;
title "Oveall Pending Summary Report";

title1 "Zone Wise Pending Summary Report";
PROC REPORT DATA=pending_summary_ZoneWise out=summary_table_zonewise LIST
/*style=[cellwidth=.1 in rules=group frame=void] */
style(header)=[background= #BBDEFB foreground=black]
style(summary)=[background=white foreground=black font_weight=bold];


COLUMN Zone Product_ '<=2 days'n '3-5 DAYS'N '6-7 DAYS'N '8-10 DAYS'N '>10 DAYS'N 'Total App'n ;
DEFINE Zone / display ;
DEFINE Product_ / display ;
define '<=2 days'n /display analysis sum style(header)={background=green foreground=black};
define '3-5 DAYS'N /display analysis sum style(header)={background=green foreground=black} ;
define '6-7 DAYS'N /display analysis sum style(header)={background=yellow foreground=black};
define '8-10 DAYS'N /display analysis sum style(header)={background=red foreground=black};
define '>10 DAYS'N /display analysis sum style(header)={background=red foreground=black} ;
define 'Total App'n /display analysis sum style=[font_weight=bold foreground=black ] ;

RUN;

 

ods pdf close;

 

1 ACCEPTED SOLUTION
4 REPLIES 4
s_lassen
Meteorite | Level 14

I think you could change the definition of Zone to ORDER, and then have a line like "Break after zone/summarize"

anil2
Fluorite | Level 6
@s_lassen thanks for the solution its working i am getting my excepted column sum output for all zone .
and can you help to calculate Zonewise column sum.
anil2
Fluorite | Level 6
title1 "Zone Wise Pending Summary Report";
PROC REPORT DATA=pending_summary_ZoneWise out=summary_table_zonewise LIST 
/*style=[cellwidth=.1 in rules=group frame=void] */
style(header)=[background= #BBDEFB foreground=black]
style(summary)=[background=white    foreground=black font_weight=bold];


COLUMN Zone Product_ '<=2 days'n '3-5 DAYS'N '6-7 DAYS'N '8-10 DAYS'N '>10 DAYS'N 'Total App'n ;
define Zone /display group ;
  rbreak after / summarize;

DEFINE Product_ / display   ;
 define '<=2 days'n / analysis sum style(header)={background=green foreground=black};
define '3-5 DAYS'N / analysis sum style(header)={background=green foreground=black} ;
 define '6-7 DAYS'N / analysis sum  style(header)={background=yellow foreground=black};
define '8-10 DAYS'N / analysis sum   style(header)={background=red foreground=black};
define  '>10 DAYS'N / analysis sum style(header)={background=red foreground=black} ;
  define 'Total App'n / analysis sum  style=[font_weight=bold foreground=black ] ;

RUN; 


sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 848 views
  • 2 likes
  • 3 in conversation