| Date: | Tue, 4 Oct 2011 15:19:07 +0200 |
| Reply-To: | =?utf-8?B?15LXk9eZINeR158g15DXkdeZ?= <GADI_B@MALAM.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | =?utf-8?B?15LXk9eZINeR158g15DXkdeZ?= <GADI_B@MALAM.COM> |
| Subject: | Re: Producing a report with more that one blank line between data
lines |
|
| In-Reply-To: | <CAEZCyst8QEryn-jzW_bOrPBtjJ9Z-TvuHPg60GweN5Y+y7DOfA@mail.gmail.com> |
| Content-Type: | text/plain; charset="utf-8" |
Thanks, but the output will have to printed, so creating an HTML report will not be a good idea.
The user is going to write the report using PUT commands. That way they can do whatever they want.
Gadi
-----Original Message-----
From: Data _null_; [mailto:iebupdte@gmail.com]
Sent: Tuesday, October 04, 2011 3:17 PM
To: גדי בן אבי
Cc: SAS-L@listserv.uga.edu
Subject: Re: Producing a report with more that one blank line between data lines
How do you say "Don't look a gift horse in the mouth"?
If you have version 9.3 you might be able to use BLANKLINE and STYLE to make a wide blank line that otherwise looks like 2 blank lines.
BLANKLINE= nBLANKLINE= (COUNT=n <STYLE= [style-attibute-specification(s)] > ) specifies to insert a blank line after every n observations. The observation count is reset to 0 at the beginning of each BY group for all ODS destinations.
n | COUNT = n
specifies the observation number after which SAS inserts a blank line.
STYLE = [ style-attribute-specification(s) ] specifies the style to use for the blank line.
Default:DATA
Tip:You can use the BACKGROUNDCOLOR style element to make a visual distinction between observations using color.
See:The STYLE= option for valid style attributes.
Example:Selecting Variables to Print
On z/OS if you are writing ANSI CC you could modify CC post PROC PRINT. The performance may not be to you liking.
2011/10/4 גדי בן אבי <GADI_B@malam.com>:
> Thanks, but we're running on z/OS, so the first option won't work.
> The problem with the second option is that if the data set has many records, it can cause performance problems.
>
> Gadi
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Tom Abernathy
> Sent: Tuesday, October 04, 2011 2:39 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Producing a report with more that one blank line between
> data lines
>
> There are a few tricks you can do when using simple ASCII output files.
>
> One is to add a column that includes newline characters. If you do this you might want to lower the PAGESIZE settings as SAS will not count those extra lines.
>
> %let nlines=2;
> data example;
> set sashelp.class ;
> skip = repeat('0A0A'x,&nlines - 1);
> * On Windows might want to use '0D0A'x ; run; proc printto
> print='example.lst'; run; proc print; run; proc printto print=print;
> run;
>
> Another trick is add blank records and print those.
>
> %let nlines=2;
> data example;
> set sashelp.class ;
> output;
> call missing(of _all_);
> do _n_=1 to &nlines;
> output;
> end;
> run;
> options missing=' ';
> proc print noobs;
> run;
> options missing='.';
>
>
> On Tue, 4 Oct 2011 13:14:12 +0200, <GADI_B@MALAM.COM> wrote:
>
>>Hi,
>>
>>One of our users asked how she could produce a report using PROC PRINT
>>that
> would have more than one blank line between the data lines.
>>
>>Does anyone know how to do this?
>>
>>Thanks
>>
>>Gadi
>>
>
> לשימת לבך, בהתאם ל הלי החברה וזכויות החתימה בה, כל הצעה, התחייבות או
> מצג מטעם החברה, מחייבים מסמך פרד וחתום על ידי מורשי החתימה של החברה, ה ושא את לוגו החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) המצורף להודעת דואר אלקטרו י זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי.
>
>
> Please note that in accordance with Malam's signatory rights, no
> offer, agreement, concession or representation is binding on the company, unless accompanied by a duly signed separate document (or a scanned version thereof), affixed with the company's seal.
>
לשימת לבך, בהתאם ל הלי החברה וזכויות החתימה בה, כל הצעה, התחייבות או מצג מטעם החברה, מחייבים מסמך פרד וחתום על ידי מורשי החתימה של החברה, ה ושא את לוגו החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) המצורף להודעת דואר אלקטרו י זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון,
ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי.
Please note that in accordance with Malam's signatory rights, no offer, agreement, concession or representation is binding on the company,
unless accompanied by a duly signed separate document (or a scanned version thereof), affixed with the company's seal.
|