LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 5 Feb 2004 10:39:51 -0500
Reply-To:   Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject:   Re: String literal with embedded hex ?

Complicated perhaps, but it would resolve at compile time, as if it were a simple constant. Presumably that's Jack's interpretation of Richard's requirement for a "single" expression.

On Wed, 4 Feb 2004 20:16:23 -0700, Jack Hamilton <JackHamilton@FIRSTHEALTH.COM> wrote:

>A bit complicated, but it seems to work: > >===== >data x; > text="Line 1%sysfunc(inputc(0A, $hex2.))Line 2"; > put text= text=$hex40.; >run; >===== > >prints > >===== >64 data x; >65 text="Line 1%sysfunc(inputc(0A, $hex2.))Line 2"; >66 put text= text=$hex40.; >67 run; > >text=Line 1Line 2 text=4C696E6520310A4C696E652032 >NOTE: The data set WORK.X has 1 observations and 1 variables. >===== > > > > >-- >JackHamilton@FirstHealth.com >Manager, Technical Development >Metrics Department, First Health >West Sacramento, California USA > >>>> "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM> 02/04/2004 6:15 PM >>>> >Is there a single character expression that does the same as >text="Line 1" || "0A"X || "Line 2"; > >This does not work >text="Line 1""0A"X"Line2"; > >-- >Richard A. DeVenezia


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