This is the example:
a) proc report data=facturas2(where=(comp='011') drop=cod_linha) nowindows COLWIDTH=131 missing
style(report)=[rules=none frame=void fontsize=8pt outputwidth=100%]
style(lines)=[font=("Courier New", 8pt)];
column linha1;
define linha1 / "" width=124 format=$124. style=[font=("Courier New", 7pt) cellheight=1pt];
quit;
b) data
linha1 - " Department" with 5 spaces at the beginning
linha1 - " Unit" with 10 spaces at the beginning
c) Current report
Department
Unit
Any help or hints are appreciated.
Hi:
You did not say what your destination of interest was. LISTING? HTML? RTF? PDF? Techniques for "padding" will differ depending on the destination of interest and on your version of SAS.
cynthia
Hi
The report will be produced in pdf with the following code:
options nodate nonumber linesize=200 pagesize=70 leftmargin=.5in rightmargin=.5in topmargin=.5in bottommargin=.5in;
ods escapechar='^';
ods listing close;
ods pdf file="c:\temp\teste_factura.pdf";
title1 j=l '^S={preimage="G:\SVB\DCT\FACT_SVB\Factura via EMAIL\Aplicação\millen2.bmp"} ORIGINAL';
footnote h=6pt f="Arial" j=l "Processado por computador";
ods pdf StartPage=Never;
ods noproctitle;
proc report data=facturas2(where=(comp='011') drop=cod_linha) nowindows COLWIDTH=131 missing
style(report)=[rules=none frame=void fontsize=8pt outputwidth=100%]
style(lines)=[font=("Courier New", 8pt)];
column linha1;
define linha1 / display "" width=124 format=$124. style=[font=("Courier New", 7pt) font_weight=bold cellheight=1pt];
quit;
ods _all_ close;
Thanks
Add a style into it.
asis=on
Ksharp
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.
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.