<?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: Datalines in macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139554#M28164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is really no need to count anything but you may want to account for delimiters contained in the words.&amp;nbsp; And make sure to properly define the variables in the data step.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dt= 1|2|'3|4'|4|5;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; temp $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;256&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;8&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; temp=symget(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'dt'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; i = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;by&lt;/SPAN&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=scan(temp,i,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"|"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Q'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; missing(x) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; leave;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; temp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2014 14:53:45 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-03-11T14:53:45Z</dc:date>
    <item>
      <title>Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139548#M28158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a macro varible i.e &lt;/P&gt;&lt;P&gt;%let x =a|b|c|d|e|f ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to creat a dataset &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by using datalines, but getting error,&lt;/P&gt;&lt;P&gt;can u please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139548#M28158</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-03-11T13:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139549#M28159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think macro variables work below cards/datalines. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let x =a|b|c|d|e|f ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; _temp=symget('x');&lt;/P&gt;&lt;P&gt;&amp;nbsp; do _i=1 to countw(_temp,'|');&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=scan(_temp,_i,'|');&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop _:;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139549#M28159</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-03-11T13:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139550#M28160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A good approach, but consider a few items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of values will be 1 + countw(...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't really need SYMGET.&amp;nbsp; You could just refer to "&amp;amp;x" instead of _temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The length of the variable X will be longer than you might expect ... perhaps better to set that length with a LENGTH statement early in the DATA step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139550#M28160</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-03-11T13:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139551#M28161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The advantage of SYMGET is you don't have to worry about what quote characters might exist in the value of the macro variable or the setting of QUOTELENMAX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139551#M28161</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-11T14:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139552#M28162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes agree with you that i need to +1 , But using macro variable directly is not working,[may be i m missing something]&lt;/P&gt;&lt;P&gt;I have mentioned below both example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let dt= 1|2|3|4|5;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;temp=symget('dt');&lt;/P&gt;&lt;P&gt;do i = 1 to count(temp,'|')+1;&lt;/P&gt;&lt;P&gt;x= scan(temp,i,"|");&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;do i = 1 to count(&amp;amp;dt,'|')+1;&lt;/P&gt;&lt;P&gt;x= scan(&amp;amp;dt,i,"|");&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139552#M28162</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-03-11T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139553#M28163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the final DATA step, you have to add the double quotes in two places:&amp;nbsp; "&amp;amp;dt" not &amp;amp;dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also recommend adding a PROC CONTENTS so you can see the length assigned to X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139553#M28163</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-03-11T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139554#M28164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is really no need to count anything but you may want to account for delimiters contained in the words.&amp;nbsp; And make sure to properly define the variables in the data step.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dt= 1|2|'3|4'|4|5;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; temp $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;256&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;8&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; temp=symget(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'dt'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; i = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;by&lt;/SPAN&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=scan(temp,i,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"|"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Q'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; missing(x) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; leave;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; temp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139554#M28164</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-11T14:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139555#M28165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how I like to scan through a variable list and create my new macro variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro loop(varlist);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let i=1;&lt;/P&gt;&lt;P&gt;%do %while (%scan(&amp;amp;varlist, &amp;amp;i, "|") ^=%str());&lt;/P&gt;&lt;P&gt;%let var=%scan(&amp;amp;varlist, &amp;amp;i, "|");&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;var;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*rest of SAS code goes here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Increment counter;&lt;/P&gt;&lt;P&gt;%let i=%eval(&amp;amp;i+1);&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let temp=a|b|c|d|e;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%loop(&amp;amp;temp);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139555#M28165</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-11T14:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139556#M28166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are scanning twice and your delimiter list includes the double quote.&amp;nbsp; I think you may need some macro quoting to protect your program from the words.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 15:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139556#M28166</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-11T15:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139557#M28167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the double quote correction.&lt;/P&gt;&lt;P&gt;I'm not too concerned about the scanning twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use it to scan variable lists, so no issue with extra quotation marks, punctuation in the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other places that may need macro quoting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 15:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139557#M28167</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-11T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139558#M28168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable list processing is best done with PROC TRANSPOSE.&amp;nbsp; With transpose you can also process "SAS Variable Lists" like name range, prefix,&amp;nbsp; and enumerated lists. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 15:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139558#M28168</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-11T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139559#M28169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let x =a|b|c|d|e|f ;&lt;BR /&gt;data _null_;&lt;BR /&gt;file "c:\temp\temp.csv";&lt;BR /&gt; _file_="&amp;amp;x";&lt;BR /&gt; put;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;infile "c:\temp\temp.csv" dlm='|';&lt;BR /&gt;input x $ @@;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139559#M28169</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2014-03-11T16:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139560#M28170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do a search for "infile magic" to see how that and MORE are done in one data step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-in-macro/m-p/139560#M28170</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-03-11T16:59:49Z</dc:date>
    </item>
  </channel>
</rss>

