| Date: | Fri, 8 May 2009 06:02:10 -0500 |
| Reply-To: | "Data _null_;" <iebupdte@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Data _null_;" <iebupdte@GMAIL.COM> |
| Subject: | Re: Convert SAS source file to PDF |
|
| In-Reply-To: | <001201c9cf89$7a940540$6fbc0fc0$@com> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
dm 'inc _program_.sas';
dm wedit 'edcmd selectall; wcopy' wedit;
These commands may help you save a few keystrokes.
On 5/7/09, Lei Wang <lwang2002@msn.com> wrote:
> The problem is that SAS editor cannot print file with syntax highlight,
> while other editor such as notepad++, ultraedit cannot highlight the SAS
> code correctly as SAS editor. If using those editor, I need to revise the
> source file, move some * ; commments to /* */ and customize their syntax
> hightlight file. Finally I decide to complete my job using cut/paste and
> employing MS word then print to PDF.
>
> Thanks all.
>
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Dale
> McLerran
> Sent: Thursday, May 07, 2009 8:26 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Convert SAS source file to PDF
>
> I would suggest looking into CUTEPDF. CUTEPDF is a (free) printer
> driver which produces a pdf file from any Windows application.
>
> There are a couple of issues in using CUTEPDF. First, I don't
> know how one would batch the entire process (opening SAS
> interactively so that syntax highlighting is employed and
> then submitting the SAS program window to the CUTEPDF printer).
> Also, the output produced by CUTEPDF does not produce a file
> which is searchable. That is, CUTEPDF does not render text
> but pixels. Which rather leads to a final issue with the CUTEPDF
> version which is that the pdf file which is created is larger
> than would be the case if characters were rendered.
>
> Dale
>
> ---------------------------------------
> Dale McLerran
> Fred Hutchinson Cancer Research Center
> mailto: dmclerra@NO_SPAMfhcrc.org
> Ph: (206) 667-2926
> Fax: (206) 667-5977
> ---------------------------------------
>
>
> --- On Thu, 5/7/09, Mary <mlhoward@AVALON.NET> wrote:
>
> > From: Mary <mlhoward@AVALON.NET>
> > Subject: Re: Convert SAS source file to PDF
> > To: SAS-L@LISTSERV.UGA.EDU
> > Date: Thursday, May 7, 2009, 3:21 PM
> > Looks like our questioner will have
> > to get going on the cutting and pasting
> > route, then.
> >
> > -Mary
> >
> > ----- Original Message -----
> > From: "Data _null_;" <iebupdte@GMAIL.COM>
> > To: <SAS-L@LISTSERV.UGA.EDU>
> > Sent: Thursday, May 07, 2009 5:16 PM
> > Subject: Re: Convert SAS source file to PDF
> >
> >
> > > That would produce a PDF but without syntax
> > highlighting provided by the
> > > EE.
> > >
> > > On 5/7/09, Mary <mlhoward@avalon.net>
> > wrote:
> > >> I wonder if you could read your SAS source file
> > into a data set with one
> > >> field maybe 150 characters wide, then you could
> > use ODS to PDF around a
> > >> put
> > >> or proc print to convert it to a PDF.
> > >>
> > >> -Mary
> > >>
> > >> ----- Original Message -----
> > >> From: "Lei Wang" <lwang2002@MSN.COM>
> > >> To: <SAS-L@LISTSERV.UGA.EDU>
> > >> Sent: Thursday, May 07, 2009 4:44 PM
> > >> Subject: Re: Convert SAS source file to PDF
> > >>
> > >>
> > >> Thanks. This method works. But I need convert a
> > lots of SAS files, so it
> > >> is
> > >> better to complete this job in batch process.
> > >>
> > >> I have tried a2ps, but it's syntax highlight is
> > not so good as SAS's.
> > >>
> > >> > Date: Thu, 7 May 2009 16:36:43 -0400
> > >> > From: ya.huang@AMYLIN.COM
> > >> > Subject: Re: Convert SAS source file to PDF
> > >> > To: SAS-L@LISTSERV.UGA.EDU
> > >> >
> > >> > Open SAS and MS Word, highlight all source
> > code from SAS enhanced
> > >> > editor,
> > >> > then copy/paste to Word. From Word, print to
> > PDF printer, which assume
> > >> > you
> > >> > have Acrobat installed.
> > >> >
> > >> > On Thu, 7 May 2009 15:10:45 -0500, Lei Wang
> > <lwang2002@MSN.COM>
> > wrote:
> > >> >
> > >> > >Hi,
> > >> > >
> > >> > >
> > >> > >
> > >> > >Is there any tools can convert SAS source
> > code to PDF with syntax
> > >> > highlight? Thanks.
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> >
>
|