<?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: Strange macro name retrieving in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714492#M220590</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case I want to have EUR, I can still keep the same code without changing anything, am I correct?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;currency=substr(fname,length(fname)-2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, once the suffix has been removed (by the SCAN function), &lt;FONT face="courier new,courier"&gt;fname&lt;/FONT&gt; ends in the currency code and the above statement will retrieve that code. Of course, this assumes that the currency code consists of three characters and is not followed by other name characters (e.g. an underscore).&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 08:04:38 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-01-27T08:04:38Z</dc:date>
    <item>
      <title>Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714431#M220564</link>
      <description>&lt;P&gt;Hi SAS Unsers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This morning when I try to adjust my code, I face a noticeable problem as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code for running through all file in a directory is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mydir 'C:\Users\pnguyen\Desktop\New folder';
data _null_;
did = dopen('mydir');
do i = 1 to dnum(did);
  fname = dread(did,i);
  /*fname: AustriaEUR*/
  length short_fn $29 currency $3 ;
  short_fn= cats(substr(fname, 1,length(fname)-3),'_');
  currency=substr(fname,length(fname)-2);
  cmd=cats('%ImportAndTranspose(File=C:\Users\pnguyen\Desktop\New folder\',
      strip(fname),
      ',cur=',currency,
      ',outf=',short_fn,'sheet,startsheet=1,endsheet=45);');
	  /*strip(fname) to link 
	 File=C:\Users\pnguyen\Desktop\New folder\AustriaEUR*/
        call execute(cmd);
end;
keep fname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A part of my macro is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ImportAndTranspose(
      File=
	  , cur=
	  , outf=
      , StartSheet=
      , EndSheet=
   );
   %local i;
   
   %do i = &amp;amp;StartSheet. %to &amp;amp;EndSheet.;

    %if &amp;amp;i=1 %then %do;
	
    proc import datafile= "&amp;amp;File." 
                  out= &amp;amp;outf.&amp;amp;i.
                  dbms= xlsx 
                  replace;
          range= "Sheet1$A:X";
          getnames= yes;
      run;
      
      proc sort data= &amp;amp;outf.&amp;amp;i.;
      by Type;
      run;
	%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, I test with one file named "AustriaEUR" in the folder "New Folder". I have the PROC MPRINT as below, which is quite strange to me&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(IMPORTANDTRANSPOSE):   proc import datafile= "C:\Users\pnguyen\Desktop\New folder\AustriaEUR.xlsx" &lt;STRONG&gt;out= AustriaEUR.x_sheet1&lt;/STRONG&gt; 
dbms= xlsx replace;
MPRINT(IMPORTANDTRANSPOSE):   range= "Sheet1$A:X";
MPRINT(IMPORTANDTRANSPOSE):   getnames= yes;
MPRINT(IMPORTANDTRANSPOSE):   run;
MPRINT(IMPORTANDTRANSPOSE):   proc sort data= AustriaEUR.x_sheet1;
MPRINT(IMPORTANDTRANSPOSE):   by Type;
MPRINT(IMPORTANDTRANSPOSE):   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The MPRINT as above means that &lt;STRONG&gt;outf = AustriaEUR.x_sheet&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if we substitute to the initial code, we have:&lt;/P&gt;
&lt;P&gt;fname=AustriaEUR&lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;short_fn= cats(substr(fname, 1,length(fname)-3),'_');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So short_fn=Austria_&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;',outf=',short_fn,'sheet&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;means that &lt;STRONG&gt;outf=Austria_sheet&lt;/STRONG&gt; which is much different from the one shown from OPTION MPRINT (&lt;STRONG&gt;outf = AustriaEUR.x_sheet&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please tell me where I did wrongly.&lt;/P&gt;
&lt;P&gt;Warm regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714431#M220564</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-26T21:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714435#M220565</link>
      <description>&lt;P&gt;One way to debug this is to change &lt;FONT face="courier new,courier"&gt;data _null_;&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;data null;&lt;/FONT&gt; and this creates a SAS data set named NULL. Then you can look into this data set and see if the text strings are being created properly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714435#M220565</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-26T21:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714439#M220566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I replaced&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data null;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, there is no output popping up so far with some new warnings&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: The data set WORK.NULL may be incomplete.  When this step was stopped there were 1 observations and 1 variables.
NOTE: Compressing data set WORK.NULL decreased size by 0.00 percent. 
      Compressed is 1 pages; un-compressed would require 1 pages.
WARNING: Data set WORK.NULL was not replaced because this step was stopped.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714439#M220566</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-26T22:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714442#M220567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DREAD function returns the filename &lt;EM&gt;including the suffix&lt;/EM&gt;, probably &lt;STRONG&gt;.xlsx&lt;/STRONG&gt;, so your attempt to cut off "EUR" did in fact cut off "lsx".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try if&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;fname = &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;scan&lt;/STRONG&gt;(&lt;/FONT&gt;dread(did,i)&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;,1)&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;resolves the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714442#M220567</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-01-26T22:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714446#M220568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like that you are right, the MPRINT now is more reasonable&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(IMPORTANDTRANSPOSE):   proc import datafile= "C:\Users\pnguyen\Desktop\New folder\AustriaEUR" out= Austria_sheet1 dbms= xlsx 
replace;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Many thanks for your solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why don't you put any delimiter in the condition of &lt;STRONG&gt;scan&lt;/STRONG&gt; function? In case we don't put the delimiter, what is the default one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I am looking for a further comprehensive solution because other than Austria, I have other files named with two words like &lt;STRONG&gt;United Kingdom&lt;/STRONG&gt; or &lt;STRONG&gt;United States&lt;/STRONG&gt; (you can see the blank in the middle of the name). And in these cases, it seems that the &lt;STRONG&gt;scan&lt;/STRONG&gt; function can not work properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks and warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714446#M220568</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-26T22:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714448#M220569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And apart from that, it is interesting to me, because when the filename is Austria_&lt;/P&gt;
&lt;P&gt;when I run the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mydir 'C:\Users\pnguyen\Desktop\New folder';
data _null_;
did = dopen('mydir');
do i = 1 to dnum(did);
  fname = dread(did,i);
  short_fn= cats(substr(fname, 1,3),'_');
  cmd=cats('%ImportAndTranspose(File=C:\Users\pnguyen\Desktop\New folder\',
      strip(fname),',outf=',short_fn,'sheet,startsheet=1,endsheet=45);');
  call execute(cmd);
end;
keep fname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with the macro&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ImportAndTranspose(
      File=
	  , outf=
      , StartSheet=
      , EndSheet=
   );
   %local i;
   
   %do i = &amp;amp;StartSheet. %to &amp;amp;EndSheet.;

    %if &amp;amp;i=1 %then %do;
	
    proc import datafile= "&amp;amp;File." 
                  out= &amp;amp;outf.&amp;amp;i.
                  dbms= xlsx 
                  replace;
          range= "Sheet1$A:X";
          getnames= yes;
      run;
      
      proc sort data= &amp;amp;outf.&amp;amp;i.;
      by Type;
      run;
	%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The outf seems not to include the suffix xlsx because it works smoothly&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(IMPORTANDTRANSPOSE):   proc import datafile= "C:\Users\pnguyen\Desktop\New folder\Austria_.xlsx" out= Aus_sheet1 dbms= xlsx 
replace;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is quite an interesting part to me when I compare this workable code and the problematic code in this post that you explain because of the existence of the suffix.&lt;/P&gt;
&lt;P&gt;I am wondering if there is any reasonable explanation for this difference?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714448#M220569</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-26T22:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714449#M220570</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;But why don't you put any delimiter in the condition of &lt;STRONG&gt;scan&lt;/STRONG&gt; function? In case we don't put the delimiter, what is the default one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I am looking for a further comprehensive solution because other than Austria, I have other files named with two words like &lt;STRONG&gt;United Kingdom&lt;/STRONG&gt; or &lt;STRONG&gt;United States&lt;/STRONG&gt; (you can see the blank in the middle of the name). And in these cases, it seems that the &lt;STRONG&gt;scan&lt;/STRONG&gt; function can not work properly.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In this case, of course, you must specify the delimiter because the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jshdjy2z9zdzn1h7k90u99lyq6.htm&amp;amp;locale=en#n00kvf1f25pei3n16sfnb6yr6nrj" target="_blank" rel="noopener"&gt;list of default delimiters&lt;/A&gt; includes the blank:&lt;/P&gt;
&lt;PRE&gt;fname = scan(dread(did,i),1,'.');&lt;/PRE&gt;
&lt;P&gt;And, yes, I should have specified it in the first place to provide more robust code. Sorry for the omission.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714449#M220570</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-01-26T22:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714450#M220571</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And apart from that, it is interesting to me, because when the filename is Austria_&lt;/P&gt;
&lt;P&gt;when I run the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mydir 'C:\Users\pnguyen\Desktop\New folder';
data _null_;
did = dopen('mydir');
do i = 1 to dnum(did);
  fname = dread(did,i);
  short_fn= cats(substr(fname, 1,3),'_');
...&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The outf seems not to include the suffix xlsx because it works smoothly (...)&lt;/P&gt;
&lt;P&gt;I am wondering if there is any reasonable explanation for this difference?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, the above code is different in that it cuts the value of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;fname&lt;/FONT&gt; after the &lt;EM&gt;first three&lt;/EM&gt; characters rather than before the &lt;EM&gt;last three&lt;/EM&gt;. That way the suffix isn't involved.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 23:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714450#M220571</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-01-26T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714472#M220578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your straight answer, one last further question is&lt;/P&gt;
&lt;P&gt;In case I want to have EUR, I can still keep the same code without changing anything, am I correct?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;currency=substr(fname,length(fname)-2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;TIA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714472#M220578</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-27T03:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714492#M220590</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case I want to have EUR, I can still keep the same code without changing anything, am I correct?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;currency=substr(fname,length(fname)-2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, once the suffix has been removed (by the SCAN function), &lt;FONT face="courier new,courier"&gt;fname&lt;/FONT&gt; ends in the currency code and the above statement will retrieve that code. Of course, this assumes that the currency code consists of three characters and is not followed by other name characters (e.g. an underscore).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 08:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714492#M220590</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-01-27T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714522#M220597</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I replaced&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data null;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, there is no output popping up so far with some new warnings&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: The data set WORK.NULL may be incomplete.  When this step was stopped there were 1 observations and 1 variables.
NOTE: Compressing data set WORK.NULL decreased size by 0.00 percent. 
      Compressed is 1 pages; un-compressed would require 1 pages.
WARNING: Data set WORK.NULL was not replaced because this step was stopped.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Although you have an answer, I point out that there is not supposed to be "output popping up" here. The point here was for you to LOOK AT (with your own eyes) the data set created called NULL to see if the text strings were being properly created. This is a valuable debugging method when you are creating strings to be placed into a CALL EXECUTE.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 11:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714522#M220597</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-27T11:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714739#M220694</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;, it is a valuable lesson for me, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714739#M220694</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-27T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714741#M220695</link>
      <description>&lt;P&gt;And is there any document talking about the comparison between NULL and _NULL_, can I ask? I google it but no result so far!&lt;/P&gt;
&lt;P&gt;Many thanks and warm regards!&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714741#M220695</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-27T19:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714754#M220701</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data _null_;&lt;/FONT&gt; does not create a data set you can look at. This is fine if you have worked out the bugs in your program and you don't need an actual data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data null;&lt;/FONT&gt; (or any valid data set name except _null_) creates a data set you can look at.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714754#M220701</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-27T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Strange macro name retrieving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714756#M220702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your dedicated answer, I really appreciate it. From people like you, I believe that there are still a lot of great people all over the world, motivating me to be the next great person!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks and warmest regards.&lt;/P&gt;
&lt;DIV id="eJOY__extension_root" class="eJOY__extension_root_class" style="all: unset;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-macro-name-retrieving/m-p/714756#M220702</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-27T19:37:57Z</dc:date>
    </item>
  </channel>
</rss>

