<?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: Error 22-322 : Syntax error on a linear regression in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608699#M17741</link>
    <description>&lt;P&gt;Get rid of all these non-standard SAS names three days before yesterday; they force you to use these ugly name literals, which cause all kind of problems, starting with making the code unreadable, and the following problem.&lt;/P&gt;
&lt;P&gt;Next, you have loads of unbalanced quotes here:&lt;/P&gt;
&lt;PRE&gt;OUTPUT OUT=WORK.PREDLINREGPREDICTIONS_0002(LABEL="Prédictions et statistiques de régression linéaire pour WORK.'DATASET FP'n")
PREDICTED="predicted_Y - GDP per capita (c
RESIDUAL="residual_Y - GDP per capita (cu
STUDENT="student_Y - GDP per capita (cur
RSTUDENT="rstudent_Y - GDP per capita (cu
LCL="lcl_Y - GDP per capita (current
LCLM="lclm_Y - GDP per capita (curren
UCL="ucl_Y - GDP per capita (current
UCLM="uclm_Y - GDP per capita (curren ;&lt;/PRE&gt;
&lt;P&gt;and what does the text&lt;/P&gt;
&lt;PRE&gt;Linear_Regression_Model: &lt;/PRE&gt;
&lt;P&gt;do right in the middle of your proc reg code?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2019 13:41:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-02T13:41:53Z</dc:date>
    <item>
      <title>Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608679#M17732</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this error message, following my linear regression model on SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : un nom, ;, COOKD, COVRATIO, DFFITS, H, L95, L95M, LCL,&lt;BR /&gt;LCLM, OUT, P, PRED, PREDICTED, PRESS, R, RESIDUAL, RSTUDENT, STDI, STDP, STDR, STUDENT, U95, U95M, UCL, UCLM.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;97 RESIDUAL="residual_Y - GDP per capita (cu&lt;BR /&gt;ERROR: residual_Y does not have a numeric suffix.&lt;BR /&gt;97 RESIDUAL="residual_Y - GDP per capita (cu&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Erreur de syntaxe, l'une des valeurs suivantes est attendue : un nom, ;, -, COOKD, COVRATIO, DFFITS, H, L95, L95M,&lt;BR /&gt;LCL, LCLM, OUT, P, PRED, PREDICTED, PRESS, R, RESIDUAL, RSTUDENT, STDI, STDP, STDR, STUDENT, U95, U95M, UCL, UCLM.&lt;/P&gt;&lt;P&gt;97 RESIDUAL="residual_Y - GDP per capita (cu&lt;BR /&gt;_&lt;BR /&gt;76&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;98 STUDENT="&lt;BR /&gt;_&lt;BR /&gt;49"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the html code of the linear regression :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;/* -------------------------------------------------------------------&lt;BR /&gt;Code généré par une tâche SAS&lt;/P&gt;&lt;P&gt;Généré le : lundi 2 décembre 2019 à 12:18:05&lt;BR /&gt;Par tâche : Régression linéaire&lt;/P&gt;&lt;P&gt;Données d'entrée : Local:WORK.DATASET FP&lt;BR /&gt;Serveur : Local&lt;BR /&gt;------------------------------------------------------------------- */&lt;BR /&gt;ODS GRAPHICS ON;&lt;/P&gt;&lt;P&gt;%_eg_conditional_dropds(WORK.PREDLINREGPREDICTIONS_0002,&lt;BR /&gt;WORK.SORTTEMPTABLESORTED_0002,&lt;BR /&gt;WORK.TMP1TempTableForPlots);&lt;BR /&gt;/* -------------------------------------------------------------------&lt;BR /&gt;Déterminez l'attribut de type de la table (si défini)&lt;BR /&gt;et le prépare pour l'ajout à la table/la vue, qui est&lt;BR /&gt;généré lors de l'étape suivante.&lt;BR /&gt;------------------------------------------------------------------- */&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;dsid = OPEN("WORK.'DATASET FP'n", "I");&lt;BR /&gt;dstype = ATTRC(DSID, "TYPE");&lt;BR /&gt;IF TRIM(dstype) = " " THEN&lt;BR /&gt;DO;&lt;BR /&gt;CALL SYMPUT("_EG_DSTYPE_", "");&lt;BR /&gt;CALL SYMPUT("_DSTYPE_VARS_", "");&lt;BR /&gt;END;&lt;BR /&gt;ELSE&lt;BR /&gt;DO;&lt;BR /&gt;CALL SYMPUT("_EG_DSTYPE_", "(TYPE=""" || TRIM(dstype) || """)");&lt;BR /&gt;IF VARNUM(dsid, "_NAME_") NE 0 AND VARNUM(dsid, "_TYPE_") NE 0 THEN&lt;BR /&gt;CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_ _NAME_");&lt;BR /&gt;ELSE IF VARNUM(dsid, "_TYPE_") NE 0 THEN&lt;BR /&gt;CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_");&lt;BR /&gt;ELSE IF VARNUM(dsid, "_NAME_") NE 0 THEN&lt;BR /&gt;CALL SYMPUT("_DSTYPE_VARS_", "_NAME_");&lt;BR /&gt;ELSE&lt;BR /&gt;CALL SYMPUT("_DSTYPE_VARS_", "");&lt;BR /&gt;END;&lt;BR /&gt;rc = CLOSE(dsid);&lt;BR /&gt;STOP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/* -------------------------------------------------------------------&lt;BR /&gt;Il est inutile de trier la table WORK.'DATASET FP'n.&lt;BR /&gt;------------------------------------------------------------------- */&lt;BR /&gt;DATA WORK.SORTTEMPTABLESORTED_0002 &amp;amp;_EG_DSTYPE_ / VIEW=WORK.SORTTEMPTABLESORTED_0002;&lt;BR /&gt;SET WORK.'DATASET FP'n;&lt;BR /&gt;RUN;&lt;BR /&gt;TITLE;&lt;BR /&gt;TITLE1 "Results of Global Linear Regression";&lt;BR /&gt;FOOTNOTE;&lt;BR /&gt;FOOTNOTE1 "Généré par SAS (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) le %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) à %TRIM(%QSYSFUNC(TIME(), NLTIMAP25.))";&lt;BR /&gt;PROC REG DATA=WORK.SORTTEMPTABLESORTED_0002&lt;BR /&gt;PLOTS(ONLY)=RESIDUALHISTOGRAM&lt;BR /&gt;PLOTS(ONLY)=RESIDUALBYPREDICTED&lt;BR /&gt;PLOTS(ONLY)=OBSERVEDBYPREDICTED&lt;BR /&gt;PLOTS(ONLY)=QQPLOT&lt;BR /&gt;PLOTS(ONLY)=RFPLOT&lt;BR /&gt;PLOTS(ONLY)=DIAGNOSTICSPANEL&lt;BR /&gt;PLOTS(ONLY)=RESIDUALPANEL&lt;BR /&gt;;&lt;BR /&gt;Linear_Regression_Model: MODEL "Y - GDP per capita (current US$)"n = "Access to electricity (% of popu"n "Individuals using the Internet ("n "Secure Internet servers (per 1 m"n "Compulsory education, duration ("n "Foreign direct investment, net i"n "Merchandise exports (current US$"n "Urban population (% of total pop"n "Net migration"n "International tourism, number of"n "Life expectancy at birth, total"n "Infant deaths per birth"n&lt;BR /&gt;/ SELECTION=NONE&lt;BR /&gt;CLB&lt;BR /&gt;ALPHA=0.01&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=WORK.PREDLINREGPREDICTIONS_0002(LABEL="Prédictions et statistiques de régression linéaire pour WORK.'DATASET FP'n")&lt;BR /&gt;PREDICTED="predicted_Y - GDP per capita (c&lt;BR /&gt;RESIDUAL="residual_Y - GDP per capita (cu&lt;BR /&gt;STUDENT="student_Y - GDP per capita (cur&lt;BR /&gt;RSTUDENT="rstudent_Y - GDP per capita (cu&lt;BR /&gt;LCL="lcl_Y - GDP per capita (current&lt;BR /&gt;LCLM="lclm_Y - GDP per capita (curren&lt;BR /&gt;UCL="ucl_Y - GDP per capita (current&lt;BR /&gt;UCLM="uclm_Y - GDP per capita (curren ;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;/* -------------------------------------------------------------------&lt;BR /&gt;Fin du code de la tâche&lt;BR /&gt;------------------------------------------------------------------- */&lt;BR /&gt;RUN; QUIT;&lt;BR /&gt;%_eg_conditional_dropds(WORK.SORTTEMPTABLESORTED_0002,&lt;BR /&gt;WORK.TMP1TempTableForPlots);&lt;BR /&gt;TITLE; FOOTNOTE;&lt;BR /&gt;ODS GRAPHICS OFF;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Milos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 11:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608679#M17732</guid>
      <dc:creator>milos_miletic</dc:creator>
      <dc:date>2019-12-02T11:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608699#M17741</link>
      <description>&lt;P&gt;Get rid of all these non-standard SAS names three days before yesterday; they force you to use these ugly name literals, which cause all kind of problems, starting with making the code unreadable, and the following problem.&lt;/P&gt;
&lt;P&gt;Next, you have loads of unbalanced quotes here:&lt;/P&gt;
&lt;PRE&gt;OUTPUT OUT=WORK.PREDLINREGPREDICTIONS_0002(LABEL="Prédictions et statistiques de régression linéaire pour WORK.'DATASET FP'n")
PREDICTED="predicted_Y - GDP per capita (c
RESIDUAL="residual_Y - GDP per capita (cu
STUDENT="student_Y - GDP per capita (cur
RSTUDENT="rstudent_Y - GDP per capita (cu
LCL="lcl_Y - GDP per capita (current
LCLM="lclm_Y - GDP per capita (curren
UCL="ucl_Y - GDP per capita (current
UCLM="uclm_Y - GDP per capita (curren ;&lt;/PRE&gt;
&lt;P&gt;and what does the text&lt;/P&gt;
&lt;PRE&gt;Linear_Regression_Model: &lt;/PRE&gt;
&lt;P&gt;do right in the middle of your proc reg code?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 13:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608699#M17741</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-02T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608704#M17744</link>
      <description>&lt;P&gt;In addition to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;said, we normally want to see the entire LOG, rather than the error messages disconnected from the code. That would make our debugging much easier. Please click on the {i} icon here at SAS communities and paste the log as text into the window that appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Linear_Regression_Model: &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is actually a valid part of the MODEL statement which names the model created, although naming a linear regression model to have the name Linear_Regression_Model seems somewhat pointless and extra and unnecessary typing to me. Normally, you'd only add such a name into the MODEL statement if you were computing two or more models in the same PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608704#M17744</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-02T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608800#M17764</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the entire code of the linear regression :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* -------------------------------------------------------------------
   Code généré par une tâche SAS

   Généré le : lundi 2 décembre 2019 à 12:18:05
   Par tâche : Régression linéaire

   Données d'entrée : Local:WORK.DATASET FP
   Serveur :  Local
   ------------------------------------------------------------------- */
ODS GRAPHICS ON;

%_eg_conditional_dropds(WORK.PREDLINREGPREDICTIONS_0002,
		WORK.SORTTEMPTABLESORTED_0002,
		WORK.TMP1TempTableForPlots);
/* -------------------------------------------------------------------
   Déterminez l'attribut de type de la table (si défini)
   et le prépare pour l'ajout à la table/la vue, qui est
   généré lors de l'étape suivante.
   ------------------------------------------------------------------- */
DATA _NULL_;
	dsid = OPEN("WORK.'DATASET FP'n", "I");
	dstype = ATTRC(DSID, "TYPE");
	IF TRIM(dstype) = " " THEN
		DO;
		CALL SYMPUT("_EG_DSTYPE_", "");
		CALL SYMPUT("_DSTYPE_VARS_", "");
		END;
	ELSE
		DO;
		CALL SYMPUT("_EG_DSTYPE_", "(TYPE=""" || TRIM(dstype) || """)");
		IF VARNUM(dsid, "_NAME_") NE 0 AND VARNUM(dsid, "_TYPE_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_ _NAME_");
		ELSE IF VARNUM(dsid, "_TYPE_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_");
		ELSE IF VARNUM(dsid, "_NAME_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_NAME_");
		ELSE
			CALL SYMPUT("_DSTYPE_VARS_", "");
		END;
	rc = CLOSE(dsid);
	STOP;
RUN;

/* -------------------------------------------------------------------
   Il est inutile de trier la table WORK.'DATASET FP'n.
   ------------------------------------------------------------------- */
DATA WORK.SORTTEMPTABLESORTED_0002 &amp;amp;_EG_DSTYPE_ / VIEW=WORK.SORTTEMPTABLESORTED_0002;
	SET WORK.'DATASET FP'n;
RUN;
TITLE;
TITLE1 "Results of Global Linear Regression";
FOOTNOTE;
FOOTNOTE1 "Généré par SAS (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) le %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) à %TRIM(%QSYSFUNC(TIME(), NLTIMAP25.))";
PROC REG DATA=WORK.SORTTEMPTABLESORTED_0002
		PLOTS(ONLY)=RESIDUALHISTOGRAM
		PLOTS(ONLY)=RESIDUALBYPREDICTED
		PLOTS(ONLY)=OBSERVEDBYPREDICTED
		PLOTS(ONLY)=QQPLOT
		PLOTS(ONLY)=RFPLOT
		PLOTS(ONLY)=DIAGNOSTICSPANEL
		PLOTS(ONLY)=RESIDUALPANEL
	;
	Linear_Regression_Model: MODEL "Y - GDP per capita (current US$)"n = "Access to electricity (% of popu"n "Individuals using the Internet ("n "Secure Internet servers (per 1 m"n "Compulsory education, duration ("n "Foreign direct investment, net i"n "Merchandise exports (current US$"n "Urban population (% of total pop"n "Net migration"n "International tourism, number of"n "Life expectancy at birth, total"n "Infant deaths per birth"n
		/		SELECTION=NONE
		CLB
		ALPHA=0.01
	;

	OUTPUT OUT=WORK.PREDLINREGPREDICTIONS_0002(LABEL="Prédictions et statistiques de régression linéaire pour WORK.'DATASET FP'n")
		PREDICTED="predicted_Y - GDP per capita (c 
		RESIDUAL="residual_Y - GDP per capita (cu 
		STUDENT="student_Y - GDP per capita (cur 
		RSTUDENT="rstudent_Y - GDP per capita (cu 
		LCL="lcl_Y - GDP per capita (current 
		LCLM="lclm_Y - GDP per capita (curren 
		UCL="ucl_Y - GDP per capita (current 
		UCLM="uclm_Y - GDP per capita (curren ;
RUN;
QUIT;

/* -------------------------------------------------------------------
   Fin du code de la tâche
   ------------------------------------------------------------------- */
RUN; QUIT;
%_eg_conditional_dropds(WORK.SORTTEMPTABLESORTED_0002,
		WORK.TMP1TempTableForPlots);
TITLE; FOOTNOTE;
ODS GRAPHICS OFF;&lt;/PRE&gt;&lt;P&gt;Do you need anything else ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 17:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608800#M17764</guid>
      <dc:creator>milos_miletic</dc:creator>
      <dc:date>2019-12-02T17:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608805#M17767</link>
      <description>&lt;P&gt;This part:&lt;/P&gt;
&lt;PRE&gt;		PREDICTED="predicted_Y - GDP per capita (c 
		RESIDUAL="residual_Y - GDP per capita (cu 
		STUDENT="student_Y - GDP per capita (cur 
		RSTUDENT="rstudent_Y - GDP per capita (cu 
		LCL="lcl_Y - GDP per capita (current 
		LCLM="lclm_Y - GDP per capita (curren 
		UCL="ucl_Y - GDP per capita (current 
		UCLM="uclm_Y - GDP per capita (curren ;
&lt;/PRE&gt;
&lt;P&gt;can't work because of the unbalanced quotes and the resulting syntax ERRORs.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608805#M17767</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-02T18:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322 : Syntax error on a linear regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608810#M17769</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/301935"&gt;@milos_miletic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the entire code of the linear regression :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/* -------------------------------------------------------------------
   Code généré par une tâche SAS

   Généré le : lundi 2 décembre 2019 à 12:18:05
   Par tâche : Régression linéaire

   Données d'entrée : Local:WORK.DATASET FP
   Serveur :  Local
   ------------------------------------------------------------------- */
ODS GRAPHICS ON;

%_eg_conditional_dropds(WORK.PREDLINREGPREDICTIONS_0002,
		WORK.SORTTEMPTABLESORTED_0002,
		WORK.TMP1TempTableForPlots);
/* -------------------------------------------------------------------
   Déterminez l'attribut de type de la table (si défini)
   et le prépare pour l'ajout à la table/la vue, qui est
   généré lors de l'étape suivante.
   ------------------------------------------------------------------- */
DATA _NULL_;
	dsid = OPEN("WORK.'DATASET FP'n", "I");
	dstype = ATTRC(DSID, "TYPE");
	IF TRIM(dstype) = " " THEN
		DO;
		CALL SYMPUT("_EG_DSTYPE_", "");
		CALL SYMPUT("_DSTYPE_VARS_", "");
		END;
	ELSE
		DO;
		CALL SYMPUT("_EG_DSTYPE_", "(TYPE=""" || TRIM(dstype) || """)");
		IF VARNUM(dsid, "_NAME_") NE 0 AND VARNUM(dsid, "_TYPE_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_ _NAME_");
		ELSE IF VARNUM(dsid, "_TYPE_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_TYPE_");
		ELSE IF VARNUM(dsid, "_NAME_") NE 0 THEN
			CALL SYMPUT("_DSTYPE_VARS_", "_NAME_");
		ELSE
			CALL SYMPUT("_DSTYPE_VARS_", "");
		END;
	rc = CLOSE(dsid);
	STOP;
RUN;

/* -------------------------------------------------------------------
   Il est inutile de trier la table WORK.'DATASET FP'n.
   ------------------------------------------------------------------- */
DATA WORK.SORTTEMPTABLESORTED_0002 &amp;amp;_EG_DSTYPE_ / VIEW=WORK.SORTTEMPTABLESORTED_0002;
	SET WORK.'DATASET FP'n;
RUN;
TITLE;
TITLE1 "Results of Global Linear Regression";
FOOTNOTE;
FOOTNOTE1 "Généré par SAS (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) le %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) à %TRIM(%QSYSFUNC(TIME(), NLTIMAP25.))";
PROC REG DATA=WORK.SORTTEMPTABLESORTED_0002
		PLOTS(ONLY)=RESIDUALHISTOGRAM
		PLOTS(ONLY)=RESIDUALBYPREDICTED
		PLOTS(ONLY)=OBSERVEDBYPREDICTED
		PLOTS(ONLY)=QQPLOT
		PLOTS(ONLY)=RFPLOT
		PLOTS(ONLY)=DIAGNOSTICSPANEL
		PLOTS(ONLY)=RESIDUALPANEL
	;
	Linear_Regression_Model: MODEL "Y - GDP per capita (current US$)"n = "Access to electricity (% of popu"n "Individuals using the Internet ("n "Secure Internet servers (per 1 m"n "Compulsory education, duration ("n "Foreign direct investment, net i"n "Merchandise exports (current US$"n "Urban population (% of total pop"n "Net migration"n "International tourism, number of"n "Life expectancy at birth, total"n "Infant deaths per birth"n
		/		SELECTION=NONE
		CLB
		ALPHA=0.01
	;

	OUTPUT OUT=WORK.PREDLINREGPREDICTIONS_0002(LABEL="Prédictions et statistiques de régression linéaire pour WORK.'DATASET FP'n")
		PREDICTED="predicted_Y - GDP per capita (c 
		RESIDUAL="residual_Y - GDP per capita (cu 
		STUDENT="student_Y - GDP per capita (cur 
		RSTUDENT="rstudent_Y - GDP per capita (cu 
		LCL="lcl_Y - GDP per capita (current 
		LCLM="lclm_Y - GDP per capita (curren 
		UCL="ucl_Y - GDP per capita (current 
		UCLM="uclm_Y - GDP per capita (curren ;
RUN;
QUIT;

/* -------------------------------------------------------------------
   Fin du code de la tâche
   ------------------------------------------------------------------- */
RUN; QUIT;
%_eg_conditional_dropds(WORK.SORTTEMPTABLESORTED_0002,
		WORK.TMP1TempTableForPlots);
TITLE; FOOTNOTE;
ODS GRAPHICS OFF;&lt;/PRE&gt;
&lt;P&gt;Do you need anything else ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, yes, I do need something else, and I didn't really ask for this. I want to see the entire LOG, not just the error messages, but the entire SAS log, so we can match up the error message with the actual location in the code where the error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it seems that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has found serious problems, which you need to address.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-22-322-Syntax-error-on-a-linear-regression/m-p/608810#M17769</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-02T18:30:51Z</dc:date>
    </item>
  </channel>
</rss>

