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 (February 2012, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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