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