<?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 22: LINE and COLUMN cannot be determined. Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725702#M225466</link>
    <description>&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;Hi everyone,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;I have been dealing with this error since yesterday and I cant seem to figure out why. My code shown below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro test(m,d,y);&lt;/P&gt;&lt;P&gt;%let eom_dt=%sysfunc(mdy(&amp;amp;m,&amp;amp;d,&amp;amp;y));&lt;/P&gt;&lt;P&gt;%let eom=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),yymmddn8.);&lt;BR /&gt;%let eom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),yymmddd10.);&lt;BR /&gt;%let bom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,b),yymmddd10.);&lt;/P&gt;&lt;P&gt;%put &amp;amp;eom &amp;amp;eom_tera &amp;amp;bom_tera;&lt;/P&gt;&lt;P&gt;options SPOOL compress=yes;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;create table _9statement_data_&amp;amp;eom as&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;select mis_dt as MIS_DT2&lt;BR /&gt;, crdnbr as CRDNBR2&lt;BR /&gt;, CSHLCY as CASH_LIMIT&lt;BR /&gt;, stmtmth as STMT_DT&lt;BR /&gt;from fc.INT_CRD_M&lt;BR /&gt;where crdnbr in (select distinct crdnbr from STMT_1) and&lt;BR /&gt;mis_dt = %bquote('&amp;amp;eom_tera')&lt;BR /&gt;and stmtmth between %bquote('&amp;amp;bom_tera') and %bquote('&amp;amp;eom_tera')&lt;BR /&gt;order by crdnbr&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%test(1,31,2020);&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;The error shown was:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;22: LINE and COLUMN cannot be determined.&lt;BR /&gt;2 The SAS System 09:58 Friday, March 12, 2021&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;=, AND, EQ, EQT, EXCEPT,&lt;BR /&gt;GE, GET, GROUP, GT, GTT, HAVING, INTERSECT, LE, LET, LT, LTT, NE, NET, NOT, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~,&lt;BR /&gt;~=.&lt;BR /&gt;200: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;NOTE: Line generated by the macro function "BQUOTE".&lt;BR /&gt;54 '2020-01-31'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;_&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;BR /&gt;USER.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE 139-205: Line generated by the macro function "BQUOTE".&lt;BR /&gt;54 '2020-01-01'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;_&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, +, -, BTRIM, CALCULATED, CASE, INPUT, PUT, SUBSTRING, TRANSLATE, USER.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;22: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, /, AND, ||.&lt;BR /&gt;76: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;any input is very much appreciated. Thanks in advance&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 03:41:57 GMT</pubDate>
    <dc:creator>nanmz</dc:creator>
    <dc:date>2021-03-12T03:41:57Z</dc:date>
    <item>
      <title>22: LINE and COLUMN cannot be determined. Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725702#M225466</link>
      <description>&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;Hi everyone,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;I have been dealing with this error since yesterday and I cant seem to figure out why. My code shown below:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro test(m,d,y);&lt;/P&gt;&lt;P&gt;%let eom_dt=%sysfunc(mdy(&amp;amp;m,&amp;amp;d,&amp;amp;y));&lt;/P&gt;&lt;P&gt;%let eom=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),yymmddn8.);&lt;BR /&gt;%let eom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),yymmddd10.);&lt;BR /&gt;%let bom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,b),yymmddd10.);&lt;/P&gt;&lt;P&gt;%put &amp;amp;eom &amp;amp;eom_tera &amp;amp;bom_tera;&lt;/P&gt;&lt;P&gt;options SPOOL compress=yes;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;create table _9statement_data_&amp;amp;eom as&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;select mis_dt as MIS_DT2&lt;BR /&gt;, crdnbr as CRDNBR2&lt;BR /&gt;, CSHLCY as CASH_LIMIT&lt;BR /&gt;, stmtmth as STMT_DT&lt;BR /&gt;from fc.INT_CRD_M&lt;BR /&gt;where crdnbr in (select distinct crdnbr from STMT_1) and&lt;BR /&gt;mis_dt = %bquote('&amp;amp;eom_tera')&lt;BR /&gt;and stmtmth between %bquote('&amp;amp;bom_tera') and %bquote('&amp;amp;eom_tera')&lt;BR /&gt;order by crdnbr&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%test(1,31,2020);&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;The error shown was:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;22: LINE and COLUMN cannot be determined.&lt;BR /&gt;2 The SAS System 09:58 Friday, March 12, 2021&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;=, AND, EQ, EQT, EXCEPT,&lt;BR /&gt;GE, GET, GROUP, GT, GTT, HAVING, INTERSECT, LE, LET, LT, LTT, NE, NET, NOT, OR, ORDER, OUTER, UNION, ^, ^=, |, ||, ~,&lt;BR /&gt;~=.&lt;BR /&gt;200: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;NOTE: Line generated by the macro function "BQUOTE".&lt;BR /&gt;54 '2020-01-31'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;_&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;BR /&gt;USER.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE 139-205: Line generated by the macro function "BQUOTE".&lt;BR /&gt;54 '2020-01-01'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;_&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, +, -, BTRIM, CALCULATED, CASE, INPUT, PUT, SUBSTRING, TRANSLATE, USER.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;22: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !!, *, **, +, -, /, AND, ||.&lt;BR /&gt;76: LINE and COLUMN cannot be determined.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;any input is very much appreciated. Thanks in advance&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 03:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725702#M225466</guid>
      <dc:creator>nanmz</dc:creator>
      <dc:date>2021-03-12T03:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: 22: LINE and COLUMN cannot be determined. Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725704#M225468</link>
      <description>&lt;P&gt;Are the comparison variables numeric date variables in the input dataset such as:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mis_dt = %bquote('&amp;amp;eom_tera')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and stmtmth between %bquote('&amp;amp;bom_tera') and %bquote('&amp;amp;eom_tera')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You seem to be comparing them against characters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(m,d,y);
	%let eom_dt=%sysfunc(mdy(&amp;amp;m,&amp;amp;d,&amp;amp;y));
	%let eom=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),yymmddn8.);
	%let eom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,e),date9.);
	%let bom_tera=%sysfunc(intnx(month,&amp;amp;eom_dt,0,b),date9.);
	%put &amp;amp;eom &amp;amp;eom_tera &amp;amp;bom_tera;
	options SPOOL compress=yes;

	proc sql;
		create table _9statement_data_&amp;amp;eom as


		select mis_dt as MIS_DT2
			, crdnbr as CRDNBR2
			, CSHLCY as CASH_LIMIT
			, stmtmth as STMT_DT
		from fc.INT_CRD_SALE_STMT_SNAPSHOT_M
			where crdnbr in (select distinct crdnbr from STMT_1) and
				mis_dt = "&amp;amp;eom_tera"d
				and stmtmth between "&amp;amp;bom_tera"d and "&amp;amp;eom_tera"d
			order by crdnbr
		;
	quit;

%mend;

%test(1,31,2020);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Mar 2021 03:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725704#M225468</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-03-12T03:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: 22: LINE and COLUMN cannot be determined. Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725706#M225470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/246836"&gt;@qoit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input. I tried your approach and it worked!!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 04:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/22-LINE-and-COLUMN-cannot-be-determined-Error/m-p/725706#M225470</guid>
      <dc:creator>nanmz</dc:creator>
      <dc:date>2021-03-12T04:23:05Z</dc:date>
    </item>
  </channel>
</rss>

