Date: Wed, 29 Feb 2012 07:19:36 -0500
Reply-To: Richard Devenezia <rdevenezia@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Richard Devenezia <rdevenezia@GMAIL.COM>
Subject: Can SYSGET result be quoted?
Hi:
Consider the situation when a system environment variable has a value that
contains an ampersand:
SET EXTERNAL_PARAMETER="THIS&THAT"
or the system properties dialog is used to assign
name: EXTERNAL_PARAMETER
value: THIS&THAT
The following code will log
WARNING: Apparent symbolic reference THAT not resolved.
%let value = %sysget(EXTERNAL_PARAMETER);
Is there a way to quote or prevent macro resolution of sysgetted values ?
A similar warning appears when using SYSGET in DATA Step:
call symput ('value', system('EXTERNAL_PARAMETER'));
Thanks,
Richard