BookmarkSubscribeRSS Feed
DLROW
Quartz | Level 8

Hi, dol and dul  is not working. Please see the code below and let me know what I am missing. Thanks.

 

ods excel
file = &outfile.

 

PROC REPORT Data=Account nowd 

style(report)=[borderstyle=solid bordercolor=Lavender verticalalign=T cellspacing=0 cellpadding=0]

style(header)=[background=STB color=white fontfamily=calibri FONT_WEIGHT=BOLD fontsize=3.3  textalign= L verticalalign=T  cellheight=.1in tagattr='Wrap:no' borderstyle=solid bordercolor=black]

style(column)=[fontfamily=calibri fontsize=2.8 textalign=Left verticalalign=c borderstyle=solid  bordercolor=Lavender cellheight=.1in tagattr='Wrap:no'];

COLUMNS Name ID AMT_A  AMT_B  AMT_C  ID_2  ID_3

        TOTAL_AMT   ;

define  Name/ group 'Name' style(column)=[background=Lavender color=black  textalign=left frame=void rules=none];

 define ID /group  'ID ' style(column)=[background=Lavender color=black  textalign=left frame=void rules=none];

 define AMT_A / group 'AMT_A' style(column)=[background=Lavender color=black  textalign=left frame=void rules=none] f=dollar18.;

 define AMT_B / group 'AMT_B' style(column)=[background=Lavender color=black  textalign=left] f=dollar18.;

 define AMT_C/ group 'AMT_C' style(column)=[background=Lavender color=black  textalign=left];

  define ID_2 / group 'ID_2' style(column)=[background=Lavender color=black  textalign=left];

 define ID_3 /  display 'ID_3 ' style(column)=[background=Lavender color=black  textalign=left];

 define TOTAL_AMT /  'TOTAL_AMT' style(column)=[background=Lavender color=black  textalign=left] f=dollar18.;

 

 break after Name / skip  summarize dol dul suppress style=[font_weight=bold] ;

 

 compute after Name;

 line '';

 

 endcomp;

RUN;

 QUIT;

 

        
Name IDAMT_AAMT_BAMT_CID_2ID_3Total_Amt
AAAAAAA5643$30,000$0$3567895234567$167,004
      456789$41,209
       $208,213
1 REPLY 1
ballardw
Super User

What is your ODS destination?

Note that the documentation for DOL and DUL says:

This option affects only the LISTING output. It has no affect on other ODS output.

 

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 692 views
  • 1 like
  • 2 in conversation