<?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 how to make a macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154593#M30317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;i want to make a macro variables,but it&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can not be used,here is my code; and a&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;ttachment is my data set.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select f into: g separated by ""&lt;/P&gt;&lt;P&gt;from f;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;g.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Nov 2013 03:20:24 GMT</pubDate>
    <dc:creator>oujiang</dc:creator>
    <dc:date>2013-11-24T03:20:24Z</dc:date>
    <item>
      <title>how to make a macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154593#M30317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;i want to make a macro variables,but it&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can not be used,here is my code; and a&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;ttachment is my data set.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select f into: g separated by ""&lt;/P&gt;&lt;P&gt;from f;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;g.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 03:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154593#M30317</guid>
      <dc:creator>oujiang</dc:creator>
      <dc:date>2013-11-24T03:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154594#M30318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried the same and i can see that the macro variable was created without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you wish to get the value of the f variable within the dataset f into a macro variable called g. if this is the case then your code should work well. Was there any error or warning reported while executing the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 03:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154594#M30318</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-11-24T03:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154595#M30319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use&lt;/SPAN&gt; it with &lt;SPAN class="hps"&gt;SAS9.2，&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; SAS&lt;SPAN class="hps"&gt;9.3&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;will appear "I/O"error!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 05:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154595#M30319</guid>
      <dc:creator>oujiang</dc:creator>
      <dc:date>2013-11-24T05:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154596#M30320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Very perplexing indeed! I got access to a SAS 9.3 machine and didn't have any issues with the code (see screen shot). I ran the program twice...once with separated by "" (quote-quote) and the second time separated by " " (quote-space-quote) and as you can see, both times worked correctly. Although how you would use the first macro variable without any separators is another puzzle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However, I'd recommend that you work with Tech Support on this, An I/O error is something that needs to be investigated more thoroughly, where someone looks at your entire log, at the *EXACT* message and at various settings that might impact the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11894i590F854F0307E8CB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="make_macro_var.png" title="make_macro_var.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 17:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154596#M30320</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-11-24T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154597#M30321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia's suggestion to work with tech support is a good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more thoughts from here, might suggest you write a little program that creates work.f, followed by your proc SQL step.&amp;nbsp; Then batch submit that program and see if you get the same I/O error.&amp;nbsp; And if you do, post the code and log here for others to try running and see if they get the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL step you showed could be copied straight out of a macro language course.&amp;nbsp; Must be something odd going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 17:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-macro-variables/m-p/154597#M30321</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-11-24T17:59:19Z</dc:date>
    </item>
  </channel>
</rss>

