<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How To return String of value from String of column name? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539149#M148494</link>
    <description>OMG it worked...Thanks so much! should have posted the question 3 hours earlier..</description>
    <pubDate>Wed, 27 Feb 2019 21:52:05 GMT</pubDate>
    <dc:creator>lpf19sam</dc:creator>
    <dc:date>2019-02-27T21:52:05Z</dc:date>
    <item>
      <title>How To return String of value from String of column name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539146#M148492</link>
      <description>&lt;P&gt;I am using VERSION 7.15. I set a string without quotation mark around, I wonder How to convert the string into a string that have quotation mark around and could be as a value, not a column name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is worked when directly add the quotation mark around;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let string = 'test';

data test_table;
x =&amp;amp;string;
y = 5;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to adjust the test into 'test' so that I am able to run the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let string = test;

/*(some code in here to change the value test from column name to string value)*/

data test_table;
x =&amp;amp;string;
y = 5;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539146#M148492</guid>
      <dc:creator>lpf19sam</dc:creator>
      <dc:date>2019-02-27T21:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How To return String of value from String of column name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539148#M148493</link>
      <description>If I understand correctly, you can use double quotes:&lt;BR /&gt;&lt;BR /&gt;x = "&amp;amp;string";</description>
      <pubDate>Wed, 27 Feb 2019 21:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539148#M148493</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-27T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How To return String of value from String of column name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539149#M148494</link>
      <description>OMG it worked...Thanks so much! should have posted the question 3 hours earlier..</description>
      <pubDate>Wed, 27 Feb 2019 21:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-return-String-of-value-from-String-of-column-name/m-p/539149#M148494</guid>
      <dc:creator>lpf19sam</dc:creator>
      <dc:date>2019-02-27T21:52:05Z</dc:date>
    </item>
  </channel>
</rss>

