<?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: How to resolve a macro variable with number at beginning in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572135#M161439</link>
    <description>&lt;P&gt;Not enough of the log to tell what the error is talking about.&lt;/P&gt;
&lt;P&gt;Make sure to turn on the MPRINT option before running the macro so the log will show the code that the macro generated.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 16:01:59 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-09T16:01:59Z</dc:date>
    <item>
      <title>How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572033#M161410</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to read multiple txt documents into SAS with number at beginning of documents name, like 1_apple, 2_pear, 3_peach... It can work if I import it one by one(&lt;STRONG&gt;code 1&lt;/STRONG&gt;), but fails when in the macro(&lt;STRONG&gt;code 2&lt;/STRONG&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data '1_Apple'n;&lt;BR /&gt;infile "/myaddress/1_Apple.txt" dsd dlm = ',';&lt;BR /&gt;input Number :$17.&lt;BR /&gt;Country :$18.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data in.'1_Apple'n;&lt;BR /&gt;set '1_Apple'n;&lt;BR /&gt;run;&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;STRONG&gt;code 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%macro import(filename);&lt;BR /&gt;data &amp;amp;filename;&lt;BR /&gt;infile "/myaddress/&amp;amp;filename..txt" dsd dlm = ',';&lt;BR /&gt;input Number :$17.&lt;BR /&gt;Country :$18.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data in.&amp;amp;filename;&lt;BR /&gt;set &amp;amp;filename;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend import;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%import(Apple_1);----------------------(It can work but the number is put at the end of document name)&lt;BR /&gt;%import(1_Apple);----------------------(ERROR 22-322:&amp;nbsp;Syntax error, expecting one of the following: a name, a quoted string, ;, CUROBS, END, INDSNAME, KEY, KEYRESET, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.)&amp;nbsp;&lt;BR /&gt;%import('1_Apple'n);-------------------(ERROR: Physical file does not exist, /myaddress/'1_Apple'n.txt.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder is there any method that I can name it with the number at the beginning?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572033#M161410</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572037#M161412</link>
      <description>&lt;P&gt;As far as i know, macro variables must start with either letter or underscore, fortunately the ugly name literals don't exist in the macro-language.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572037#M161412</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-07-09T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572040#M161415</link>
      <description>&lt;P&gt;With slight changes to the macro, you should be able to get this version to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%import(1_Apple)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the last DATA step within the macro so it uses double quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data in."&amp;amp;filename"n;
set "&amp;amp;filename"n;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572040#M161415</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-07-09T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572043#M161416</link>
      <description>&lt;P&gt;Didn't you notice the difference between your first code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data '1_Apple'n;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the code the macro is generating?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data 1_Apple;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You just need to make the macro generate a name literal like your original code did.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data "&amp;amp;filename"n;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572043#M161416</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572044#M161417</link>
      <description>&lt;P&gt;Thanks! But the result is still the same. (apple_1 can work but not 1_apple)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the problem should be over there:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;infile "/myaddress/&amp;amp;filename..txt" dsd dlm = ',';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;filename. cannot refer to 1_apple correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572044#M161417</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572049#M161419</link>
      <description>&lt;P&gt;Thanks! I tried. But it will stop because there is no physical file in&amp;nbsp;/myaddress/'1_apple'n.txt. It should be&amp;nbsp;/myaddress/1_apple.txt&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572049#M161419</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572050#M161420</link>
      <description>&lt;P&gt;Ok.. Maybe I need to change the document name.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572050#M161420</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572057#M161423</link>
      <description>&lt;P&gt;Yes, it can.&amp;nbsp; It does.&amp;nbsp; Show the program you used and the macro call, and we can adjust it if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572057#M161423</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-07-09T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572060#M161424</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/280929"&gt;@jordenlam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks! I tried. But it will stop because there is no physical file in&amp;nbsp;/myaddress/'1_apple'n.txt. It should be&amp;nbsp;/myaddress/1_apple.txt&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why did you change the way you were building the physical filename? There shouldn't have been any trouble with that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymacro(file);

data "&amp;amp;file"n ;
   .... "/myaddress/&amp;amp;file..txt" ...
...
%mend;
%mymacro(1_apple)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572060#M161424</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572065#M161425</link>
      <description>I think perhaps you should change your requirements just slightly. The import file name is 1_apple but perhaps name your SAS datasets 1_apple? You can name them 1_apple but then you run into issues, so I highly recommend changing the name, which is easy enough. Are all your files the same format/type? Are they all in the same folder? If so, you can read them in a single data step. If this makes sense, please reply back and someone can help you with that code.</description>
      <pubDate>Tue, 09 Jul 2019 14:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572065#M161425</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-09T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572069#M161426</link>
      <description>&lt;P&gt;Oh, that's because if I use 1_apple directly, the number "1" will be treated as a separate part with "_apple". You can see that the number "1" has turn out to be blue instead of black font.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572069#M161426</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572070#M161427</link>
      <description>&lt;P&gt;Right...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572070#M161427</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572072#M161428</link>
      <description>&lt;P&gt;I just rename all the documents as apple_1 and it can work on my original code.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572072#M161428</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572076#M161429</link>
      <description>&lt;P&gt;In general it is probably not good to force the dataset name to match exactly the string used to build the physical filename.&amp;nbsp; SAS names have many more restrictions than physical filenames have.&amp;nbsp; In addition to the pain of having to use name literals when the names are non conforming there is a maximum of 32 characters for a name in SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better to make your macro/process a little smarter.&lt;/P&gt;
&lt;P&gt;For example your macro could use two input parameters. One to be used in finding the physical file and one to be used in naming the SAS dataset.&amp;nbsp; You could even make the macro smart enough to try to use the physical file name in creating the dataset name.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro import(file,dataset);
%if 0=%length(&amp;amp;dataset) %then
 %let dataset=%sysfunc(nliteral(%qsysfunc(substrn(&amp;amp;file,1,32))))
;
data &amp;amp;dataset;
  infile "/top_leve_directory/&amp;amp;file..txt" ....
...
%mend import;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can use it with a name for the dataset&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%import(1_apple,apple1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or without&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%import(1_apple)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572076#M161429</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572078#M161431</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/280929"&gt;@jordenlam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Oh, that's because if I use 1_apple directly, the number "1" will be treated as a separate part with "_apple". You can see that the number "1" has turn out to be blue instead of black font.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am pretty sure that the SAS compiler is color blind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The colors you see in your editor is just the editor trying to help you catch obvious typos or syntax errors.&amp;nbsp; But the editor is NOT the SAS compiler so it will produce many strange colors on perfectly fine code.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572078#M161431</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572086#M161433</link>
      <description>&lt;P&gt;Thanks a lot! That's a good point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I rewrite a code and fix the dataset name but still has the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro import(filename);
data apple1;
    infile "/myaddress/&amp;amp;filename..txt" dsd dlm = ',';
	input Number :$17.	
	      Country :$18.;
run;

data in.apple1;
    set apple1;
run;

%mend import;

%import(1_Apple);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572086#M161433</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572093#M161434</link>
      <description>&lt;P&gt;I don't see any error. In fact I don't see any lines from your SAS log at all.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572093#M161434</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572116#M161435</link>
      <description>&lt;P&gt;Try this, if it doesn't work, please post the log from the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*debugging options for macro;
options mprint symbolgen;

%macro import(filename);

*fix name for data set;
data _null_;
p1 = scan("&amp;amp;filename", 1,"_");
p2 = scan("&amp;amp;filename", 2, "_");
new_name = catx("_", p2, p1);
call symputx('dsetname', new_name);
run;

*read in file and save to library;
data in.&amp;amp;dsetname;
    infile "/myaddress/&amp;amp;filename..txt" dsd dlm = ',';
	input Number :$17.	
	      Country :$18.;
run;


%mend import;

%import(1_Apple);&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572116#M161435</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-09T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572118#M161436</link>
      <description>&lt;P&gt;NOTE: Line generated by the macro variable "FILENAME".&lt;BR /&gt;26 1_Apple&lt;BR /&gt;___&lt;BR /&gt;22&lt;BR /&gt;200&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, CUROBS, END, INDSNAME, KEY, KEYRESET, KEYS,&lt;BR /&gt;NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572118#M161436</guid>
      <dc:creator>jordenlam</dc:creator>
      <dc:date>2019-07-09T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve a macro variable with number at beginning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572135#M161439</link>
      <description>&lt;P&gt;Not enough of the log to tell what the error is talking about.&lt;/P&gt;
&lt;P&gt;Make sure to turn on the MPRINT option before running the macro so the log will show the code that the macro generated.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 16:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-resolve-a-macro-variable-with-number-at-beginning/m-p/572135#M161439</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-09T16:01:59Z</dc:date>
    </item>
  </channel>
</rss>

