<?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: SAS macro variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386878#M24929</link>
    <description>&lt;P&gt;Sorry My Mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;first&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.0328565628&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;Data have ;&lt;BR /&gt;set have ;&lt;BR /&gt;call symput('OBSERVEDAVGVAR', &amp;nbsp;First);&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;Data Have2 ;&lt;BR /&gt;Set have ;&lt;BR /&gt;&lt;BR /&gt;Second = &amp;amp;OBSERVEDAVGVAR ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;BR /&gt;&lt;BR /&gt;Data have3 ;&lt;BR /&gt;Set have2 ;&lt;BR /&gt;&lt;BR /&gt;Third = First/Second ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Aug 2017 07:14:12 GMT</pubDate>
    <dc:creator>guptagaurav12</dc:creator>
    <dc:date>2017-08-10T07:14:12Z</dc:date>
    <item>
      <title>SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386574#M24901</link>
      <description>&lt;P&gt;I have a macro variable to store decimal values upto 10 places and then create a dataset with a column consisting of that values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am facing a problem as the macro variable is not storing the value upto 10 decimal places and I can't find a way to give format or something to the macro Variable so that it can store the exact same value provided to it and then pass that value to the new dataset created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I store values upto 10 decimal places in a macro variable..??&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386574#M24901</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-09T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386577#M24902</link>
      <description>&lt;P&gt;You need to be much more specific and give an example of your code and example showing the data, so we can see what you are doing and what is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But ... I agree with the usual advice in this forum ... macro is primarily a text processor, it shouldn't normally be used for numbers ... so my guess is that there is a non-macro solution that will work better for you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386577#M24902</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-09T11:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386578#M24903</link>
      <description>&lt;P&gt;You can store values up to 65534 characters in a macro variable, so the length is not your problem.&lt;/P&gt;
&lt;P&gt;I guess that you are losing digits on the conversion to numeric because you are exceeding the numeric precision inherent in 64-bit real numbers (~15 decimal digits).&lt;/P&gt;
&lt;P&gt;Please post some values that don't work, and the code you used.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386578#M24903</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-09T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386582#M24904</link>
      <description>&lt;P&gt;Macro varibles are text and hence can contain anything. &amp;nbsp;Where is the data coming in from? &amp;nbsp;There are a number of methods of reading data into SAS, be it from text files, Excel, databases. &amp;nbsp;Macro variables however are not a data medium, but a method of find/replace code generation. &amp;nbsp;Perhaps show where you get this data from and handle it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 12:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386582#M24904</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-09T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386586#M24905</link>
      <description>&lt;P&gt;Most likely you have let SAS convert the number to a character string to store into the macro variable and it has defaulted to using BEST12. format for the conversion. &amp;nbsp;Use your own format instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call symputx('mymvar',put(myvar,best32.));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 12:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386586#M24905</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-09T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386857#M24925</link>
      <description>&lt;P&gt;i have a column named FIRST with a value&amp;nbsp;0.0328565628 and I am storing this in a macro variable xyz and then this value is stored in another column named SECOND but when I am creating a third column named THIRD which is equal to FIRST/SECOND then it is giving a value of 0.999999 but I am expecting this to be complete 1 because logically both the columns FIRST and SECOND are exact same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't understand the reason for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 04:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386857#M24925</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T04:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386870#M24926</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158095"&gt;@guptagaurav12&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;i have a column named FIRST with a value&amp;nbsp;0.0328565628 and I am storing this in a macro variable xyz and then this value is stored in another column named SECOND but when I am creating a third column named THIRD which is equal to FIRST/SECOND then it is giving a value of 0.999999 but I am expecting this to be complete 1 because logically both the columns FIRST and SECOND are exact same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't understand the reason for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope someone can help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please post your code and some example data (like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input first;
cards;
0.0328565628
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 06:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386870#M24926</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T06:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386874#M24927</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;first&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token keyword"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt;0.0328565628&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;Data have ;&lt;BR /&gt;set have ;&lt;BR /&gt;call symput('OBSERVEDAVGVAR', &amp;nbsp;ObservedAverages);&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;Data Have2 ;&lt;BR /&gt;Set have ;&lt;BR /&gt;&lt;BR /&gt;Second = &amp;amp;OBSERVEDAVGVAR ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;BR /&gt;&lt;BR /&gt;Data have3 ;&lt;BR /&gt;Set have2 ;&lt;BR /&gt;&lt;BR /&gt;Third = First/Second ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 06:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386874#M24927</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T06:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386876#M24928</link>
      <description>&lt;P&gt;Please test your example code yourself before posting it here.&lt;/P&gt;
&lt;P&gt;There is no variable ObservedAverages in dataset have, so the macrovar ends up empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386876#M24928</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T07:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386878#M24929</link>
      <description>&lt;P&gt;Sorry My Mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;first&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.0328565628&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;Data have ;&lt;BR /&gt;set have ;&lt;BR /&gt;call symput('OBSERVEDAVGVAR', &amp;nbsp;First);&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;Data Have2 ;&lt;BR /&gt;Set have ;&lt;BR /&gt;&lt;BR /&gt;Second = &amp;amp;OBSERVEDAVGVAR ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;BR /&gt;&lt;BR /&gt;Data have3 ;&lt;BR /&gt;Set have2 ;&lt;BR /&gt;&lt;BR /&gt;Third = First/Second ;&lt;BR /&gt;&lt;BR /&gt;Run ;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386878#M24929</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T07:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386881#M24932</link>
      <description>&lt;P&gt;I see no problem here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input first;
cards;
0.0328565628
;
run;

data _null_;
set have;
call symput('OBSERVEDAVGVAR',first);
run;

%put &amp;amp;OBSERVEDAVGVAR;

data have2;
set have;
second = &amp;amp;OBSERVEDAVGVAR;
run;

data have3;
set have2;
third = first / second;
format third best32.;
if third = 1 then flag = 'yes';
run;

proc print data=have3 noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;  first      second                                third    flag

0.032857    0.032857                                   1    yes 
&lt;/PRE&gt;
&lt;P&gt;Not only does third &lt;EM&gt;display&lt;/EM&gt; as 1, it &lt;EM&gt;is&lt;/EM&gt; really equal to 1, as the conditional statement shows.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386881#M24932</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T07:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386882#M24933</link>
      <description>&lt;P&gt;Sorry clicked on Accept as Solution by mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ya it should display one but it displays 1 for only first row and from second row onwards it display 0.99999.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can't understand why..??&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386882#M24933</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T07:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386883#M24934</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158095"&gt;@guptagaurav12&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Sorry clicked on Accept as Solution by mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ya it should display one but it displays 1 for only first row and from second row onwards it display 0.99999.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can't understand why..??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When there's different outcomes with the same code, then the reason is in the data. Please post the real values that cause the erratic behaviour.&lt;/P&gt;
&lt;P&gt;If in doubt, use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your data to a data step for posting. This method will preserve values as they are (not as they are displayed)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386883#M24934</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T07:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386886#M24935</link>
      <description>&lt;P&gt;Is there a way I can send my DataSet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS EG 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386886#M24935</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386889#M24936</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158095"&gt;@guptagaurav12&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way I can send my DataSet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS EG 9.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. Use the macro from the link I gave you. This is the proper method for posting example data that will preserve data and attributes, clear all firewalls, and not cause a problem because of incompatible SAS versions (DBCS vs. SBCS vs. UTF-8, little/big-endian).&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386889#M24936</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386896#M24939</link>
      <description>&lt;P&gt;I used the macro&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%data2datastep&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;cars&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;sashelp&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and created a new dataset but couldn't find it anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should I do..??&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386896#M24939</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386899#M24940</link>
      <description>&lt;P&gt;You need to supply the dataset and library name of your dataset to the macro (1st and 2nd parameter). You should also supply a filename as the third parameter; place this file in your shared folder (if you use SAS UE) - ie "/folders/myfolder/dataset.sas", so you can find it from your Windows desktop. The 4th parameter sets the number of observations that will go into the datastep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then open the file from your desktop with a text editor and copy/paste its contents into a code window.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386899#M24940</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386905#M24941</link>
      <description>&lt;P&gt;I did this &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include '\act$\data2datastep.sas' /lrecl=1000;&lt;BR /&gt;%data2datastep(check, Actshare,Checking, 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I got this in log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The file "Checking" is:&lt;BR /&gt;Filename=D:\sasconf\Config\Lev1\SASApp\Checking,&lt;BR /&gt;RECFM=V,LRECL=32767,File Size (bytes)=0,&lt;BR /&gt;Last Modified=10 August 2017 14:06:00,&lt;BR /&gt;Create Time=10 August 2017 14:06:00&lt;/P&gt;&lt;P&gt;NOTE: 105 records were written to the file "Checking".&lt;BR /&gt;The minimum record length was 4.&lt;BR /&gt;The maximum record length was 39.&lt;BR /&gt;NOTE: There were 100 observations read from the data set ACTSHARE.CHECK.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am not getting what to do next&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386905#M24941</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-10T09:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386909#M24942</link>
      <description>&lt;P&gt;So you positively do not use SAS UE.&lt;/P&gt;
&lt;P&gt;Is that D:\ drive on a server, or do you have SAS locally installed on your &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; drive?&lt;/P&gt;
&lt;P&gt;If the latter, just open the Checking file with a text editor (from WIndows Explorer) and copy/paste the contents here.&lt;/P&gt;
&lt;P&gt;If it's on a server, you need to specify a path to your "home" directory, so you can open the file with EG or SAS Studio from there.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 09:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/386909#M24942</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T09:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/387543#M24978</link>
      <description>&lt;P&gt;But the problem is I cannot locate the file named Checking anywhere in my PC.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 04:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-macro-variable/m-p/387543#M24978</guid>
      <dc:creator>guptagaurav12</dc:creator>
      <dc:date>2017-08-12T04:25:30Z</dc:date>
    </item>
  </channel>
</rss>

