Date: Tue, 7 Mar 2000 14:48:50 +0100
Reply-To: Frank Poppe <Frank.Poppe@PWCONS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Frank Poppe <Frank.Poppe@PWCONS.COM>
Organization: UUNET-NL (http://www.nl.uu.net)
If sasvar is missing this still returns the sequence DOUBLEQUOTE, SPACE,
DOUBLEQUOTE, which is not what Harry and Bill wanted.
David Wards two-step solution
java='"' || sasvar;
java=trim(java) || '"';
circumvents this (as Charles Partridge if-then-else solution).
Richard DeVenezia <email@example.com> wrote in message
> Tell Harry to use
> java = 'stuff = ' || quote(trim(sasvar));
> <bill_droogendyk@DOFASCO.CA> wrote in message
> > SAS-L folks:
> > Harry is building this in SAS, he's saying something like:
> > java = 'stuff = "' || sasvar || '"';
> > If SASVAR contains only a space ( missing character variable ),
> > he doesn't want the JS to say stuff = " ".
> > (Seems like he wants to have a variable with length=0?)
> > How can this be done in SAS???
> > tia, on behalf of Harry, who can't SAS-L today
> > W.(Bill) Droogendyk
> > * Quality Systems
> > Dofasco Inc. Hamilton ON Canada
> > * Phone: 905 548 7200 x3359
> > * Fax: 905 548 4007
> > * Email: firstname.lastname@example.org