IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Styles in PROC PRINT


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jun 10, 2010 11:38 am
Reply with quote

Hi,

The below SAS code,
Code:
                  ODS LISTING CLOSE;                         
                  ODS PDF FILE=OUTFILE1 NOTOC;               
                  OPTIONS NOCENTER ERRORABEND NODATE NONUMBER;
PROC PRINT UNIFORM DATA=xxxxxxxx SPLIT=',';     
 ID A B C D E;                                                             
 VAR          E ;                                         
 SUM          E ;                                                             
                                                             
RUN;                                                         
                  ODS PDF CLOSE;         
                  ODS LISTING;


produces the attached report.


Could you please let me know how to code the styles in the proc print so that the data portion of the table has a white back ground. Currently only the last column has white background.

Thanks,
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Aug 05, 2010 12:41 pm
Reply with quote

Hi,

I stumbled on this solution recently, thought of sharing it, To get White background use,

Code:
                ODS LISTING CLOSE;                         
                  ODS PDF FILE=OUTFILE1 NOTOC;               
                  OPTIONS NOCENTER ERRORABEND NODATE NONUMBER;
PROC PRINT UNIFORM DATA=xxxxxxxx SPLIT=',';     
 ID A B C D E / STYLE = [BACKGROUND = WHITE];
 VAR          E   / STYLE = [BACKGROUND = WHITE];
 SUM          E   / STYLE = [BACKGROUND = WHITE];   
                                                             
RUN;                                                       
                  ODS PDF CLOSE;         
                  ODS LISTING;

Regards,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 05, 2010 7:31 pm
Reply with quote

Good to hear it is working - thank you for sharing the solution icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
No new posts is there a way to print time in HH:MM... SYNCSORT 12
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
No new posts Back Page print direction (Duplex Pri... JCL & VSAM 3
No new posts Print report for each record from mul... CA Products 1
Search our Forums:

Back to Top