Date: Thu, 20 Nov 2003 12:12:46 -0700
Reply-To: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject: Re: proc report ?
Content-Type: text/plain; charset=us-ascii
You're not assigning a value to hh_pres in the compute block, so the
length restriction shouldn't make a difference. When I run the code
below, I get a message saying that filename is too long, but
uncommenting the define for filename makes that go away. Then the PDF
file is created, and clicking on the link tries to open a file with the
name given.
So I'm not yet sure what your problem is.
--
JackHamilton@FirstHealth.com
Manager, Technical Development
Metrics Department, First Health
West Sacramento, California USA
>>> "Richard Wilson" <Richard.J.Wilson@RBC.COM> 11/20/2003 10:42 AM
>>>
This is what I am trying to do. But in the documentation the compute
block
has a max of 200 characters for character variables.
data test;
filename='This is a is a really long url to a sas\internet
program
that has some macro variables and is longer
than 200
characters ';
hh_pres= 'Central';
run;
ods pdf file='c:\file2.pdf';
proc report data=test nowd;
column filename hh_pres ;
define filename /noprint;
define hh_pres /display ;
*define filename / width=50 left;
compute hh_pres / char length=200;
call define(_col_,"URL",filename);
endcomp;
run;
ods pdf close;
-----Original Message-----
From: Jack Hamilton [mailto:JackHamilton@FIRSTHEALTH.COM]
Sent: Thursday, November 20, 2003 1:24 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: proc report ?
Please send to the list an example of what you are trying to do.
--
JackHamilton@FirstHealth.com
Manager, Technical Development
Metrics Department, First Health
West Sacramento, California USA
>>> "Richard Wilson" <Richard.J.Wilson@RBC.COM> 11/20/2003 10:09 AM
>>>
Is there any way to get around the length limitation (200) for a
compute
block in proc report?
Richard J. Wilson
RBC Centura
____________________________
Tel: 252.454.4964
Fax: 252.977.6362
------------------------------------------------------------
This e-mail may be privileged and/or confidential, and the sender does
not
waive any related rights and obligations. Any distribution, use or
copying of
this e-mail or the information it contains by other than an intended
recipient
is unauthorized. If you received this e-mail in error, please advise
me
(by
return e-mail or otherwise) immediately.
============================================================
------------------------------------------------------------
This e-mail may be privileged and/or confidential, and the sender does
not
waive any related rights and obligations. Any distribution, use or
copying of
this e-mail or the information it contains by other than an intended
recipient
is unauthorized. If you received this e-mail in error, please advise me
(by
return e-mail or otherwise) immediately.
============================================================