<?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 and macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474040#M121742</link>
    <description>&lt;P&gt;Tell us what you have, and what you want.&amp;nbsp; You can't use macro after the time the macro processor has been through:&lt;BR /&gt;macro processor runs&lt;/P&gt;
&lt;P&gt;data compiler runs&amp;nbsp; &amp;lt; - at this point macro will not work.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 12:12:36 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-06-28T12:12:36Z</dc:date>
    <item>
      <title>datalines and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474033#M121738</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;/* Hi , i need some help to create a "dynamic" file with macro variable values , i used the datalines but seems that it is not possible with MACRO */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; in &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TEMP&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%let val=405;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; in;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"rclcId": &amp;amp;val,&lt;/P&gt;&lt;P&gt;"rclcEndDate": %sysfunc(datetime()),&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474033#M121738</guid>
      <dc:creator>bebess</dc:creator>
      <dc:date>2018-06-28T11:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: datalines and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474040#M121742</link>
      <description>&lt;P&gt;Tell us what you have, and what you want.&amp;nbsp; You can't use macro after the time the macro processor has been through:&lt;BR /&gt;macro processor runs&lt;/P&gt;
&lt;P&gt;data compiler runs&amp;nbsp; &amp;lt; - at this point macro will not work.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474040#M121742</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-28T12:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: datalines and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474048#M121746</link>
      <description>&lt;P&gt;Macro triggers are not resolved in a datalines block. Use individual put statements instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file in;
put;
put "{";
put '"rclcId": '"&amp;amp;val,";
put '"rclcEndDate": '"%sysfunc(datetime()),";
put "}";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474048#M121746</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-28T12:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: datalines and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474051#M121747</link>
      <description>&lt;P&gt;for my need ( create a file&amp;nbsp;which is going to be call in a PROC HTTP ( in parameter) &amp;nbsp;) , i used the JSON procedure ( i have never used it before ... ) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n0s97o94nhawspn1rjhhsiu4nucz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=fr" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n0s97o94nhawspn1rjhhsiu4nucz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=fr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datalines-and-macro-variable/m-p/474051#M121747</guid>
      <dc:creator>bebess</dc:creator>
      <dc:date>2018-06-28T12:47:47Z</dc:date>
    </item>
  </channel>
</rss>

