Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Styles in PROC PRINT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1491
Location: Chennai

PostPosted: Thu Jun 10, 2010 11:38 am    Post subject: Styles in PROC PRINT
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: 1491
Location: Chennai

PostPosted: Thu Aug 05, 2010 12:41 pm    Post subject:
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

Site Director


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

PostPosted: Thu Aug 05, 2010 7:31 pm    Post subject: Reply to: Styles in PROC PRINT
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm
No new posts print out the correct info in LOOP? jackzhang75 CLIST & REXX 7 Wed Dec 23, 2015 10:39 pm
No new posts PROC to JCL mapping jena_samirkumar JCL & VSAM 13 Tue Dec 08, 2015 12:37 pm
No new posts JCL/job to PROC -- Symbolic to be use... Elixir JCL & VSAM 2 Thu Aug 20, 2015 2:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us