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 08:35:23 -0800
Reply-To:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:   Re: String literal with embedded hex ?
Comments:   To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>

Richard - Not as compact as the other suggestion but perhaps conceptually simpler:

data _null_;

line=input(put('Line 1',$hex.)||'0A'||put('Line 2',$hex.),$hex32767.);

file 'test.txt'; put line; run;

or maybe not. :-)

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: Richard A. DeVenezia [mailto:radevenz@IX.NETCOM.COM] Sent: Wednesday, February 04, 2004 6:15 PM To: SAS-L@LISTSERV.UGA.EDU Subject: String literal with embedded hex ?

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