NOTE: CALL EXECUTE generated line.
1 + proc format fmtlib ;
1 + value pct
2 + 10000-13000="RGBAC7EAFE95"
3 + 13000-16000="RGBABFE1F495"
4 + 16000-19000="RGBAB8D9EB95"
5 + 19000-22000="RGBAB2D1E395"
6 + 22000-25000="RGBAACCADB95"
7 + 25000-28000="RGBAA6C3D495"
8 + 28000-31000="RGBAA1BDCD95"
9 + 31000-34000="RGBA9CB7C795"
10 + 34000-37000="RGBA97B2C195"
11 + 37000-40000="RGBA93ADBB95"
12 + 40000-43000="RGBA8FA8B695"
13 + 43000-46000="RGBA8BA3B195"
14 + 46000-49000="RGBA879FAC95"
15 + 49000-52000="RGBA849BA895"
16 + 52000-55000="RGBA8097A495"
17 + 55000-58000="RGBA7D93A095"
18 + 58000-61000="RGBA7A909C95"
19 + 61000-64000="RGBA778C9895"
20 + 64000-67000="RGBA74899595"
21 + 67000-70000="RGBA72869195"
22 + 70000-73000="RGBA6F838E95"
23 + 73000-76000="RGBA6D808B95"
24 + 76000-79000="RGBA6B7D8895"
25 + 79000-82000="RGBA687B8595"
26 + 82000-85000="RGBA66788395"
27 + 85000-88000="RGBA64768095"
28 + .="RGBAF7F5F0480" other="RGBAFF2A2A88";
NOTE: Format PCT has been output.
28 + run;
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.03 seconds
cpu time 0.01 seconds
525
526 data staff;
527 infile datalines dlm='#';
528 input Name $16. IdNumber $ Salary
529 Site $ HireDate date7.;
530 format hiredate date7.;
531 datalines;
NOTE: The data set Work.Staff has 10 observations and 5 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
542 ;
543 run;
544
254 Chapter 15 Printing with SAS
545 /* Close the HTML destination and open the PDF destination.*/
546 /* Format the header background using an RGBA color. */
547 /* Use the PCT. format to format the salary variable. */
548
549 ods html close;
550 ods pdf file='outpdf.pdf';
NOTE: Writing ODS PDF output to DISK destination "c:publicmySASPrograms
outpdf.pdf",
printer "PDF".
551 proc print data=staff noobs label
552 style(HEADER)={background=rgbac7eafe95 fontstyle=italic}
553 style(DATA)={foreground=black};
554 var name IdNumber ;
555 var salary /style(DATA)={background=pct.};
556 label IdNumber='Employee Number' salary='Salary in U.S. Dollars';
557 format salary dollar7.;
558 title 'Generated Colors for the Variable Salary';
559 run;
NOTE: There were 10 observations read from the data set Work.Staff.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
560 ods pdf close;
NOTE: ODS PDF printed 1 page to c:publicmySASProgramsoutpdf.pdf.
561 ods html;
NOTE: Writing HTML Body file: sashtml7.htm
Universal Printing 255
Here is the formatted PDF output:
Output 15.1 PDF Formatted Using RGBA Color Values
Embedding Non-Viewable Comments in Universal Printing Output
You can embed a comment in Universal Printer output that does not appear in the output
when the file is displayed or printed. The comment can be a text string up to 4,000
characters that you specify using the COLOPHON= system option. You might want to
use the comment as a digital signature or to identify the image, vector graphic, or PDF
file. You can use a text editor or a third-party application to view the text string in the
file.
This example adds text to an SVG document using the COLOPHON= option::
options printerpath=svg colophon='Colophon text: SVG SGPLOT for sashelp.class';
ods html close;
ods printer;
proc sgplot data=sashelp.class;
reg x=height y=weight / CLM CLI;
run;
ods printer close;
ods html;
Here is the comment in the SVG document on the second line:
256 Chapter 15 Printing with SAS
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.124.21