Date: Tue, 4 Oct 2011 15:02:38 +0200
Reply-To: =?windows-1255?Q?=E2=E3=E9_=E1=EF_=E0=E1=E9?= <GADI_B@MALAM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: =?windows-1255?Q?=E2=E3=E9_=E1=EF_=E0=E1=E9?= <GADI_B@MALAM.COM>
Subject: Re: Producing a report with more that one blank line between data
lines
In-Reply-To: <201110041238.p94AoeQh013051@waikiki.cc.uga.edu>
Content-Type: text/plain; charset="windows-1255"
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.