<?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: Apparent symbolic reference not resolved - assigning values to macro variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510522#M1973</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;1.The purpose of the final step is assign data step variable to global variable&lt;BR /&gt;2.Even using symputx() the result is the same&lt;BR /&gt;3. Structure of control table:&lt;BR /&gt;Cod_Config Numeric 8 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Config Character 20 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Value Character 100 (None) (None) true (None) (None)&lt;BR /&gt;&lt;BR /&gt;4. I dont know how to yet, i am ew to sas programming&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How to use it depends on how the values of those three variables are populated.&lt;/P&gt;
&lt;P&gt;It might be that DESC_CONFIG actually has the name of the macro variable you want to create.&lt;/P&gt;
&lt;P&gt;In which case you might just do as simple as :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set CONTROL_TABLE;
  call symputx(Desc_Config,Desc_Value);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Nov 2018 18:13:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-11-05T18:13:52Z</dc:date>
    <item>
      <title>Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510440#M1955</link>
      <description>&lt;P&gt;Hi, please help.&lt;BR /&gt;&lt;BR /&gt;I have a code like this macro inside a sas program, my problem is that the variable that i am declaring inside this macro is not properly initialized for use outside of this macro. Please help me or point me to the right direction. I have been using sas for 5 months now but this bit is really challenging. I have been stuck on this for 2 days now.:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Get_Delta_Period;
%if %sysfunc(EXIST(CONFIG.CONTROL_TABLE)) %then 
	%do;
		proc sql noprint;
		   select strip(Desc_Value)
		      into :desc_value01 - :desc_value03
		   from CONFIG.CFG_EXECUTION_CONTROL Order by Cod_Config asc;
		quit;

		%let RunDateID = &amp;amp;desc_value01;
		%let start_time = "&amp;amp;desc_value02"dt;
		%let end_time = "&amp;amp;desc_value03"dt;
		
	%end;
	%else 
		%do;
		%let RunDateID = "0";
		%let start_time = '01JAN2000:12:59:59.999'dt;
		%let end_time = '01JAN2000:00:00:00.000'dt;
	%end;
 
   data _null_;
     put 'LOOK HERE: ----&amp;gt; inside Get_Delta_Period ---- dttm_BeginDV: ' &amp;amp;dttm_BeginDV;
      call symput('RunDateID', &amp;amp;RunDateID);
	  call symput('start_time', &amp;amp;start_time);
	  call symput('end_time', &amp;amp;end_time);
	run;
	
%mend;
%Get_Delta_Period;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510440#M1955</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-05T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510448#M1957</link>
      <description>&lt;P&gt;You don't actually mention which macro variables are the problem, but here is a probable culprit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'RunDateID'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;RunDateID&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'start_time'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;start_time&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'end_time'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;end_time&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To make these macro variables exist once your macro finishes executing:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;call &lt;SPAN class="token function"&gt;symputx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'RunDateID'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;RunDateID, 'global'&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
call &lt;SPAN class="token function"&gt;symputx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'start_time'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;start_time, 'global'&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
call &lt;SPAN class="token function"&gt;symputx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'end_time'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;end_time, 'global'&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;On second thought&lt;/FONT&gt;, that's useful in some cases but might cause trouble here.&amp;nbsp; Add these three lines at the very beginning of your macro definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%global RunDateID start_time end_time;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510448#M1957</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-05T15:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510456#M1959</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt; call symput('RunDateID', &amp;amp;RunDateID);&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;call symput('start_time', &amp;amp;start_time); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt; call symput('end_time', &amp;amp;end_time); run; &lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, you have a macro variable named &amp;amp;RunDateID, and you are using call symput to assign the value of &amp;amp;RunDateID to a macro variable of the same name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Agreeing with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;'s second thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may or may not be the cause of your problems, but it seems to&amp;nbsp;be code that serves no purpose at all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510456#M1959</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-11-05T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510457#M1960</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;I have done this and it has the same results -&amp;gt;&amp;nbsp; ERROR 253-185: The SYMPUTX subroutine call has too many arguments.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510457#M1960</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-05T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510463#M1963</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;I have done this and it has the same results -&amp;gt;&amp;nbsp; ERROR 253-185: The SYMPUTX subroutine call has too many arguments.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show us the code. Show us the values of your macro variables. Show us the SASLOG with &lt;FONT face="courier new,courier"&gt;options mprint;&lt;/FONT&gt; turned on.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510463#M1963</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-11-05T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510492#M1967</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;Thanks this helped and after also reading&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;reply i now understand how it works the variable needed to have been declared before.. I have updated to something like this ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%global RunDateID start_time end_time;

%macro Get_Delta_Period;
%if %sysfunc(EXIST(CONFIG.CONTROL_TABLE)) %then 
	%do;
		proc sql noprint;
		   select strip(Desc_Value)
		      into :desc_value01 - :desc_value03
		   from CONFIG.CFG_EXECUTION_CONTROL Order by Cod_Config asc;
		quit;

		%let RunDateID = &amp;amp;desc_value01;
		%let start_time = "&amp;amp;desc_value02"dt;
		%let end_time = "&amp;amp;desc_value03"dt;
		
	%end;
	%else 
		%do;
		%let RunDateID = "0";
		%let start_time = '01JAN2000:12:59:59.999'dt;
		%let end_time = '01JAN2000:00:00:00.000'dt;
	%end;
 
   data _null_;
     put 'LOOK HERE: ----&amp;gt; inside Get_Delta_Period ---- dttm_BeginDV: ' &amp;amp;dttm_BeginDV;
      call symputx('RunDateID', &amp;amp;RunDateID, 'global');
	  call symputx('start_time', &amp;amp;start_time, 'global');
	  call symputx('end_time', &amp;amp;end_time, 'global');
	run;
	
%mend;
%Get_Delta_Period;

%put &amp;amp;RunDateID; &amp;amp;start_time; &amp;amp;end_time;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "GET_DELTA_PERIOD".&lt;BR /&gt;287 data _null_; call symput('RunDateID', &amp;amp;RunDateID); call symput('dttm_BeginDV',&lt;BR /&gt;______&lt;BR /&gt;253&lt;BR /&gt;287 ! &amp;amp;dttm_BeginDV); call symput('dttm_EndDV', &amp;amp;dttm_EndDV); call symput('dt_BeginDMCO', &amp;amp;dt_BeginDMCO);&lt;BR /&gt;287 ! call symput&lt;BR /&gt;ERROR 253-185: The SYMPUT subroutine call has too many arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the macro variable "RUNDATEID".&lt;BR /&gt;287 7d81899e-5788-3540-826a-cbafd1357337&lt;BR /&gt;_______ _&lt;BR /&gt;22 22&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE,&lt;BR /&gt;GT, LE, LT, MAX, MIN, NE, NG, NL, OR, ^=, |, ||, ~=.&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;BR /&gt;287:2 287:20 287:25 287:2 287:2 287:2 287:2 287:2 287:2 287:2&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&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;</description>
      <pubDate>Mon, 05 Nov 2018 17:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510492#M1967</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-05T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510498#M1968</link>
      <description>&lt;P&gt;Paste lines from LOG using the Insert Code pop-up to preserve the formatting. The icon looks like lowercase i inside of curly brackets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logic error that is most likely causing that error message is that you never did anything to handle the case when there are fewer than three records in your control dataset.&amp;nbsp; Add this line to the top of you macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%local desc_value01 desc_value02 desc_value03 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your %PUT statement at the end has extra semi-colons in it. Try this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=RunDateID  &amp;amp;=start_time  &amp;amp;=end_time;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your default value for one of the macro variables you are adding quotes, but you are not adding them to the real value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let RunDateID = &amp;amp;desc_value01;
%let RunDateID = "0";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is the purpose of the final data step?&lt;/P&gt;
&lt;P&gt;It looks like it is removing the formatting you have added to your macro variables and adding leading spaces to the numeric ones.&lt;/P&gt;
&lt;P&gt;Is that what you want? Why?&amp;nbsp; You should at a minimum be using call symput&lt;STRONG&gt;X&lt;/STRONG&gt;() instead of the older call symput().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the structure of your control table?&amp;nbsp; Does the COD_CONFIG variable value determine the meaning of the DESC_VALUE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just use a data step with CALL SYMPUTX() instead of the SQL select with INTO clause?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510498#M1968</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-05T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510499#M1969</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Line generated by the invoked macro "GET_DELTA_PERIOD".&lt;BR /&gt;287 data _null_; call symput('RunDateID', &amp;amp;RunDateID); call symput('dttm_BeginDV',&lt;BR /&gt;______&lt;BR /&gt;253&lt;BR /&gt;287 ! &amp;amp;dttm_BeginDV); call symput('dttm_EndDV', &amp;amp;dttm_EndDV); call symput('dt_BeginDMCO', &amp;amp;dt_BeginDMCO);&lt;BR /&gt;287 ! call symput&lt;BR /&gt;ERROR 253-185: The SYMPUT subroutine call has too many arguments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Line generated by the macro variable "RUNDATEID".&lt;BR /&gt;287 7d81899e-5788-3540-826a-cbafd1357337&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The problem IS NOT that you haven't declared the variable as %GLOBAL as the first step in the program (although that's a good thing to do).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your step that begins with data _null_; serves no purpose, as I explained above, and causes an error. Take it out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The specific error is that call symput is expecting a data set VARIABLE NAME as the 2nd argument. The value of &amp;amp;RunDateID is&amp;nbsp;&lt;SPAN&gt;7d81899e-5788-3540-826a-cbafd1357337 which is not a data set variable name.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510499#M1969</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-11-05T17:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510505#M1971</link>
      <description>&lt;P&gt;It s likely that this should change:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'RunDateID'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;RunDateID&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The value being supplied should be in double-quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'RunDateID'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; "&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;RunDateID"&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To compensate for that, remove the double quotes in this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let RunDateID = "0";&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510505#M1971</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-05T17:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510508#M1972</link>
      <description>1.The purpose of the final step is assign data step variable to global variable&lt;BR /&gt;2.Even using symputx() the result is the same&lt;BR /&gt;3. Structure of control table:&lt;BR /&gt;Cod_Config Numeric 8 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Config Character 20 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Value Character 100 (None) (None) true (None) (None)&lt;BR /&gt;&lt;BR /&gt;4. I dont know how to yet, i am ew to sas programming&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510508#M1972</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-05T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510522#M1973</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;1.The purpose of the final step is assign data step variable to global variable&lt;BR /&gt;2.Even using symputx() the result is the same&lt;BR /&gt;3. Structure of control table:&lt;BR /&gt;Cod_Config Numeric 8 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Config Character 20 (None) (None) true (None) (None)&lt;BR /&gt;Desc_Value Character 100 (None) (None) true (None) (None)&lt;BR /&gt;&lt;BR /&gt;4. I dont know how to yet, i am ew to sas programming&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How to use it depends on how the values of those three variables are populated.&lt;/P&gt;
&lt;P&gt;It might be that DESC_CONFIG actually has the name of the macro variable you want to create.&lt;/P&gt;
&lt;P&gt;In which case you might just do as simple as :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set CONTROL_TABLE;
  call symputx(Desc_Config,Desc_Value);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 18:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510522#M1973</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-05T18:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510591#M1986</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244630"&gt;@PhiSlogan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, please help.&lt;BR /&gt;&lt;BR /&gt;I have a code like this macro inside a sas program, my problem is that the variable that i am declaring inside this macro is not properly initialized for use outside of this macro. Please help me or point me to the right direction. I have been using sas for 5 months now but this bit is really challenging. I have been stuck on this for 2 days now.:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Get_Delta_Period;
%if %sysfunc(EXIST(CONFIG.CONTROL_TABLE)) %then 
	%do;
		proc sql noprint;
		   select strip(Desc_Value)
		      into :desc_value01 - :desc_value03
		   from CONFIG.CFG_EXECUTION_CONTROL Order by Cod_Config asc;
		quit;

		%let RunDateID = &amp;amp;desc_value01;
		%let start_time = "&amp;amp;desc_value02"dt;
		%let end_time = "&amp;amp;desc_value03"dt;
		
	%end;
	%else 
		%do;
		%let RunDateID = "0";
		%let start_time = '01JAN2000:12:59:59.999'dt;
		%let end_time = '01JAN2000:00:00:00.000'dt;
	%end;
 
   data _null_;
     put 'LOOK HERE: ----&amp;gt; inside Get_Delta_Period ---- dttm_BeginDV: ' &amp;amp;dttm_BeginDV;
      call symput('RunDateID', &amp;amp;RunDateID);
	  call symput('start_time', &amp;amp;start_time);
	  call symput('end_time', &amp;amp;end_time);
	run;
	
%mend;
%Get_Delta_Period;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the actual resolved values of your macro variables.&lt;/P&gt;
&lt;P&gt;See if this might be similar for your desc_value01&lt;/P&gt;
&lt;PRE&gt;%let x=Something ,with,commas;
data junk;
   call symputx('somevar',&amp;amp;x);
run;
   &lt;/PRE&gt;
&lt;P&gt;If your resolved variable contains commas not inside quotes then the commas become delimiters for the function and too many.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set:&amp;nbsp; option mprint; run the macro and look closely that the resolved values of your macro variables, especially RunDateId.&lt;/P&gt;
&lt;P&gt;If there are commas in the value that is likely the issue. If there are not quotes in the value then perhaps&lt;/P&gt;
&lt;PRE&gt; call symput('RunDateID', "&amp;amp;RunDateID.");&lt;/PRE&gt;
&lt;P&gt;Maybe. Guessing without any data at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510591#M1986</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-05T20:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510714#M2013</link>
      <description>Hi I finally understand what you were saying and it works ill post an answer soon thanks a lot&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Nov 2018 10:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510714#M2013</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-06T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved - assigning values to macro variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510715#M2014</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;thanks it works fine when i declare the variables %global outside macro and eliminate the data _null_ step - with the data _null_ symputx()/symput - my declared variables loose its formatting, exactly what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;said in one of his replies. Below is the final correct code for anyone else following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%global RunDateID&amp;nbsp;start_time&amp;nbsp;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;end_time; &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Get_Delta_Period;
%if %sysfunc(EXIST(CONFIG.CONTROL_TABLE)) %then 
	%do;
		proc sql noprint;
		   select strip(Desc_Value)
		      into :desc_value01 - :desc_value03
		   from CONFIG.CONTROL_TABLE Order by Cod_Config asc;
		quit;

		%let RunDateID = "&amp;amp;desc_value01";
		%let start_time = "&amp;amp;desc_value02"dt;
		%let end_time = "&amp;amp;desc_value03"dt;
		
	%end;
	%else 
		%do;
		%let RunDateID = "0";
		%let start_time = '01JAN2000:12:59:59.999'dt;
		%let end_time = '01JAN2000:00:00:00.000'dt;
	%end;

%mend;
%Get_Delta_Period;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you so much for the help!! i understand a bit more about macro variables! Hope this also helps someone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 10:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Apparent-symbolic-reference-not-resolved-assigning-values-to/m-p/510715#M2014</guid>
      <dc:creator>PhiSlogan</dc:creator>
      <dc:date>2018-11-06T10:23:19Z</dc:date>
    </item>
  </channel>
</rss>

