LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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)
Subject:      Re: Javascript from SAS

Richard,

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).

Frank Poppe PW Consulting

Richard DeVenezia <radevenz@ix.netcom.com> wrote in message news:89mh44$2ni$1@nntp6.atl.mindspring.net... > Tell Harry to use > QUOTE(TRIM()) > > java = 'stuff = ' || quote(trim(sasvar)); > > Richard > > <bill_droogendyk@DOFASCO.CA> wrote in message > news:B34F74865B47D2119E9D0000F8B84471066B5551@DFSPO02.dofasco.ca... > > SAS-L folks: > > > > Harry's using SAS to write Javascript ( as part of a web page ) and > > Javascript wants a null variable on occasion ( i.e. stuff = "" ). Since > > 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: bill_droogendyk@dofasco.ca > >


Back to: Top of message | Previous page | Main SAS-L page