<?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: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871436#M344249</link>
    <description>You can try running this code that I sent you, the logic is pretty much the same, it works</description>
    <pubDate>Sun, 23 Apr 2023 16:56:30 GMT</pubDate>
    <dc:creator>_Sas_Beginner_</dc:creator>
    <dc:date>2023-04-23T16:56:30Z</dc:date>
    <item>
      <title>HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871395#M344225</link>
      <description>&lt;P&gt;There are two ways to implement macro statements, in fact, there is no syntax problem in both methods, but why the first one works and the second does not complete.&lt;/P&gt;
&lt;P&gt;/*there is macro code*/&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO IMPORT(FILE,OUTFILE,SHEETFILE,DATANAME);
%LET FILE=%SYSFUNC(DEQUOTE(&amp;amp;FILE));
	%LET OUTFILE=%SYSFUNC(DEQUOTE(&amp;amp;OUTFILE));
		%LET SHEETFILE=%SYSFUNC(DEQUOTE(&amp;amp;SHEETFILE));
			%LET DATANAME=%SYSFUNC(DEQUOTE(&amp;amp;DATANAME));
PROC IMPORT
	DATAFILE="&amp;amp;FILE"
		OUT=&amp;amp;OUTFILE DBMS=EXCEL REPLACE;
			SHEET=&amp;amp;SHEETFILE;
				GETNAMES=YES;
RUN;
PROC DS2;
DATA &amp;amp;DATANAME (OVERWRITE=YES);
  DCL VARCHAR CITY  HAVING LABEL '城市';
	DCL DOUBLE _COL1 HAVING LABEL '人均GDP(元）';
		DCL DOUBLE _COL2 HAVING LABEL '第二、三产业比重';
			DCL DOUBLE _COL3 HAVING LABEL '城乡居民人均可支配收入（元）';
				DCL DOUBLE _COL4 HAVING LABEL  '税收收入';
					DCL DOUBLE _COL5 HAVING LABEL '社会消费品零售总额（亿元）';
						DCL DOUBLE _COL6 HAVING LABEL '城镇非私营单位人员年平均工资（元）';
					DCL DOUBLE _COL7 HAVING LABEL '固定资产投资额（亿元）';
				DCL DOUBLE _COL8 HAVING LABEL '电信业务总量（亿元）';
			DCL DOUBLE _COL9 HAVING LABEL '旅游总消费（亿元）';
		DCL DOUBLE _COL10 HAVING LABEL '工业总产值（亿元）';
	DCL DOUBLE _COL11 HAVING LABEL '第二产业增加值（亿元）';
DCL DOUBLE _COL12 HAVING LABEL '第三产业增加值（亿元）';
METHOD RUN();
	SET &amp;amp;OUTFILE ;
END;
	ENDDATA;
RUN;
QUIT;
%MEND IMPORT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;/*This is the first way macro code is implemented*/&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%IMPORT(C:\Users\Administrator\OneDrive\aaa.xlsx
,_&amp;amp;A,_&amp;amp;A,PCA_&amp;amp;A);
%IMPORT(C:\Users\Administrator\OneDrive\aaa.xlsx
,_&amp;amp;B,_&amp;amp;B,PCA_&amp;amp;B);
%IMPORT(C:\Users\Administrator\OneDrive\aaa.xlsx
,_&amp;amp;C,_&amp;amp;C,PCA_&amp;amp;C);
%IMPORT(C:\Users\Administrator\OneDrive\aaa.xlsx
,_&amp;amp;D,_&amp;amp;D,PCA_&amp;amp;D);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;/*This is the second way macro code is implemented.But I want to implement macro statements differently*/&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FCMP OUTLIB=WORK.FUNCSS.MATH;
FUNCTION IMPORT_MACRO(OUTFILE $,SHEETFILE $,DATANAME $);
DATA=TRIM(LEFT('PCA'||DATANAME));
 FILE='C:\Users\Administrator\OneDrive\aaa.xlsx';
	RC=RUN_MACRO('IMPORT',FILE,OUTFILE,SHEETFILE,DATA);
		RETURN(RC);
	ENDSUB;
RUN;
QUIT;

OPTIONS CMPLIB=(WORK.FUNCSS);
DATA _NULL_;
DO I="_&amp;amp;A","_&amp;amp;B","_&amp;amp;C","_&amp;amp;D";
RC=IMPORT_MACRO(I,I,I);
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone tell me what's wrong with the second way? How to modify?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871395#M344225</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T14:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871407#M344229</link>
      <description>&lt;P&gt;I just want to achieve the same goal in different ways, like the following example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS CMPLIB=(WORK.FUNCS);
DATA SIGMA;
INFILE DATALINES DLM='';
	INPUT SIGMA;
RETAIN MEAN_SIGMAS MEAN 0;
	MEAN=MEAN+SIGMA;
MEAN_SIGMAS=MEAN_SIGMA(MEAN,_N_);/*累加并调用FCMP函数二*/
	PUT MEAN_SIGMAS;
DATALINES;
	0.8215555 
		1.0417353 
			1.3868175 
				1.4096968 
					1.2387825 
						1.2348056 
						1.0817474 
					1.3015245 
				1.4188027 
			1.7929420 
		1.9840148 
	1.2696905 
1.8229448 
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC DS2;
DATA _NULL_ ;
DROP I;
DCL PACKAGE FUNCTION_PACK P();
	DCL DOUBLE DS2_ARRAY[1,13];
		DCL DOUBLE DS2_VAR MEAN_SIGMAS MEAN I;
			RETAIN MEAN_SIGMAS MEAN;
METHOD RUN();
DS2_ARRAY:=(	
	0.8215555,
		1.0417353,
			1.3868175, 
				1.4096968, 
					1.2387825, 
						1.2348056, 
						1.0817474, 
					1.3015245, 
				1.4188027, 
			1.7929420, 
		1.9840148, 
	1.2696905, 
1.8229448
); 
	DO I =1 TO DIM(DS2_ARRAY,2);
		DS2_VAR=DS2_ARRAY[DIM(DS2_ARRAY),I];
		MEAN+DS2_VAR;
		MEAN_SIGMAS=P.MEAN_SIGMA(MEAN,DIM(DS2_ARRAY,2));
		OUTPUT;
	END;	
	PUT MEAN_SIGMAS= _N_=;
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above two different codes actually achieve the same purpose.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871407#M344229</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871408#M344230</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434736"&gt;@_Sas_Beginner_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using Single Quote (') instead of Double quote (")&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
DO I="_&amp;amp;A","_&amp;amp;B","_&amp;amp;C","_&amp;amp;D";
RC=IMPORT_MACRO(I,I,I);
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect the SAS compiler assumes &amp;amp;A, &amp;amp;B, &amp;amp;C, &amp;amp;D are macros and&amp;nbsp;tries to resolve them because they are included in " "&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871408#M344230</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-23T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871409#M344231</link>
      <description>Theoretically both ways can run macro statements, but I can't find a code error for the second way&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871409#M344231</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T14:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871410#M344232</link>
      <description>I tried, can't finish, single quotes can't call &amp;amp;A,&amp;amp;B, &amp;amp;C, &amp;amp;D macro variables, double quotes can be called&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Apr 2023 14:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871410#M344232</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871416#M344233</link>
      <description>Where do you initialize the A,B,C, D macro variables?</description>
      <pubDate>Sun, 23 Apr 2023 14:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871416#M344233</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-23T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871417#M344234</link>
      <description>SORRY, I FORGET IT......
%LET A=2021;
	%LET B=2020;
		%LET C=2019;
			%LET D=2018;</description>
      <pubDate>Sun, 23 Apr 2023 15:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871417#M344234</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871423#M344238</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET A=2021;
	%LET B=2020;
		%LET C=2019;
			%LET D=2018;

PROC FCMP OUTLIB=WORK.FUNCSS.MATH;
FUNCTION IMPORT_MACRO(OUTFILE $,SHEETFILE $,DATANAME $);
DATA=('PCA'||TRIM(LEFT(DATANAME)));
 FILE=('"C:\Users\Administrator\OneDrive\桌面\新建文件夹\第二步：基于主成分分析的广西经济发展水平得分排名\主成分分析数据.xlsx"');
	RC=RUN_MACRO('IMPORT',FILE,OUTFILE,SHEETFILE,DATA);
		RETURN(RC);
	ENDSUB;
RUN;
QUIT;

OPTIONS CMPLIB=(WORK.FUNCSS);
DATA _NULL_;
DO I='"_&amp;amp;A"','"_&amp;amp;B"','"_&amp;amp;C"','"_&amp;amp;D"';
RC=IMPORT_MACRO(I,I,I);
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried to change the method many times, but all failed, it seems that this method cannot add macro variables.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 15:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871423#M344238</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T15:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871432#M344245</link>
      <description>&lt;P&gt;According to the online documentation&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p0urpv7yyzylqsn1g2fycva2bs3n.htm" target="_blank"&gt;SAS Help Center: Syntax: PROC FCMP PROC FCMP Statement&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The DATA option can send inputs to a function or subroutine that are defined in the PROC FCMP step. The PROC FCMP step iterates through each observation and calls the function or subroutine during each iteration.&lt;/PRE&gt;
&lt;P&gt;Is that what you are trying to do with your function?&lt;/P&gt;
&lt;P&gt;I think you need to re-check how you are defining your function first, then try to work out the issue with your parameter passing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you test your function by calling it directly with manually supplied parameters?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 16:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871432#M344245</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-23T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871434#M344247</link>
      <description>It actually works, you can try the following code, (Sorry, my computer is out of battery, I'm calling from my cell phone, can't use the special code area)&lt;BR /&gt;&lt;BR /&gt;%Macro sorts;&lt;BR /&gt;%let v= %sysfun(dequote(&amp;amp;v));&lt;BR /&gt;%let d=%sysfun(dequote(&amp;amp;v));&lt;BR /&gt;proc sort Data =&amp;amp;d;&lt;BR /&gt;var &amp;amp;v;&lt;BR /&gt;Run;&lt;BR /&gt;proc print Data =&amp;amp;d;&lt;BR /&gt;by &amp;amp;v;&lt;BR /&gt;Run;&lt;BR /&gt;proc fcmp outlib=work.funcs.math;&lt;BR /&gt;function yyy(d $,v $);&lt;BR /&gt;rc=Run_Macro('sorts',d,v);&lt;BR /&gt;return(rc);&lt;BR /&gt;endsub;&lt;BR /&gt;&lt;BR /&gt;Options cmplib=work.funcs;&lt;BR /&gt;Data _Null_;&lt;BR /&gt;rc=yyy('sashelp.class','sex');&lt;BR /&gt;Run;</description>
      <pubDate>Sun, 23 Apr 2023 16:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871434#M344247</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871436#M344249</link>
      <description>You can try running this code that I sent you, the logic is pretty much the same, it works</description>
      <pubDate>Sun, 23 Apr 2023 16:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871436#M344249</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871450#M344261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434736"&gt;@_Sas_Beginner_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got your code to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro sorts;
	%let v= %sysfunc(dequote(&amp;amp;v));
	%let d= %sysfunc(dequote(&amp;amp;d));

	proc sort Data =&amp;amp;d out=srtd;
		by &amp;amp;v;
	Run;

	proc print Data =srtd;
		by &amp;amp;v;
	Run;
%mend;
proc fcmp outlib=work.funcs.math;
	function yyy(d $,v $);
		rc=Run_Macro('sorts',d,v);
		return(rc);
	endsub;
run;
Options cmplib=work.funcs;

Data _Null_;
	rc=yyy('sashelp.class','sex');
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But why all this complication?&lt;/P&gt;
&lt;P&gt;Here is a simpler approach, at least for this example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let d= sashelp.class;
%let v= sex;
Data _Null_;
	rc=dosubl("proc sort data=&amp;amp;d out=srtd ; by &amp;amp;v; run; Proc print data=srtd; by &amp;amp;v; run;");
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The dosubl function is very versatile.&lt;/P&gt;
&lt;P&gt;Just a thought&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 19:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871450#M344261</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-23T19:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871452#M344263</link>
      <description>This is one of my ideas. You can also try my scheme in terms of algorithmic operation processing. We will learn from each other through communication. Keep in touch! Thank you！</description>
      <pubDate>Sun, 23 Apr 2023 19:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871452#M344263</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T19:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871454#M344265</link>
      <description>&lt;P&gt;Try this instead. DATA= is a reserved word!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FCMP OUTLIB=WORK.FUNCSS.MATH;
	FUNCTION IMPORT_MACRO(OUTFILE $,SHEETFILE $,DATANAME $);
		&lt;STRONG&gt;DsName&lt;/STRONG&gt;='PCA'||STRIP(DATANAME);
		&lt;STRONG&gt;FName&lt;/STRONG&gt;='"C:\Users\Administrator\OneDrive\桌面\新建文件夹\第二步：基于主成分分析的广西经济发展水平得分排名\主成分分析数据.xlsx"';
		RC=RUN_MACRO('IMPORT',&lt;STRONG&gt;FName&lt;/STRONG&gt;,OUTFILE,SHEETFILE,&lt;STRONG&gt;DsName&lt;/STRONG&gt;);
		RETURN(RC);
	ENDSUB;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once I changed DATA= to DsName= the Syntax Linter in SAS Enterprise Guide turned Blue rather than Red.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 19:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871454#M344265</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-23T19:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871455#M344266</link>
      <description>It's four o 'clock in the morning here. I'll try your plan at noon. Thank you very much, my SAS friend</description>
      <pubDate>Sun, 23 Apr 2023 19:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871455#M344266</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-23T19:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: HELLO EVERONE! I HAVE A QUESTION ABOUT SAS CODE!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871510#M344279</link>
      <description>I'm finally done! I really appreciate you helping me find out what the problem is!!&lt;BR /&gt; You are simply a genius!&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2023 08:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HELLO-EVERONE-I-HAVE-A-QUESTION-ABOUT-SAS-CODE/m-p/871510#M344279</guid>
      <dc:creator>_Sas_Beginner_</dc:creator>
      <dc:date>2023-04-24T08:12:52Z</dc:date>
    </item>
  </channel>
</rss>

