<?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 invocation of macro TSLIT not resolved. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Apparent-invocation-of-macro-TSLIT-not-resolved/m-p/964992#M45914</link>
    <description>&lt;P&gt;What is your setting for the SASAUTOS system option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run this code to check.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(getoption(sasautos));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is what I see when I run on Unix machines.&lt;/P&gt;
&lt;PRE&gt;  1? %put %sysfunc(getoption(sasautos));

(          '!SASROOT/sasautos'         )
&lt;/PRE&gt;
&lt;P&gt;The tslit.sas file should be in that directory.&amp;nbsp; Try compiling it manually.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include '!SASROOT/sasautos/tslit.sas' / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It originally was developed as part of the SAS/Intrnet product, but I think it should be included as part of BASE SAS at this point.&amp;nbsp; For example on Windows where the autocall macros are stored in multiple different folders it is in the ...\core\sasmacro directory.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 21:16:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-04-23T21:16:38Z</dc:date>
    <item>
      <title>Apparent invocation of macro TSLIT not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Apparent-invocation-of-macro-TSLIT-not-resolved/m-p/964991#M45913</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works fine in SAS EG but when I execute the&amp;nbsp; SAS program on Unix server, it failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro validatinginputds(monthlist, yearlist)/minoperator;

%let cielist=be gc gp ha je nx tr we wc wu;
%let subfolderlist=auto habi entr;
%let loblist=auto prop cna;
%let path=/dwh_actuariat/sasdata/sas&amp;amp;yearlist.;

/****************** beginning of the  looping ************/
proc sql; 
CREATE TABLE inputds (
    
    cie varchar(2),
    lob varchar(11),
    subfolder varchar(4),
    cpath varchar(100),
	filename varchar(50),
    NbTx int, 
    tot_wrtn_prem_amt int
    
);
quit;
%do h=1 %to %sysfunc(countw(&amp;amp;cielist.));
%if %tslit(%scan(&amp;amp;cielist.,&amp;amp;h)) eq 'je' %then %let value=2;
%else %if %tslit(%scan(&amp;amp;cielist.,&amp;amp;h)) eq 'gc' %then %let value=0;
%else %let value=1;
/*%put &amp;amp;=value;*/
	%do i=1 %to %sysfunc(countw(&amp;amp;loblist.))-&amp;amp;value.;
		%do k=1 %to %sysfunc(countw(&amp;amp;yearlist.));
			%do j=1 %to %sysfunc(countw(&amp;amp;monthlist.));
				%let fname=%scan(&amp;amp;cielist.,&amp;amp;h)_%scan(&amp;amp;loblist.,&amp;amp;i)_prm%scan(&amp;amp;monthlist.,&amp;amp;j)%scan(&amp;amp;yearlist.,&amp;amp;k);
				%let libnm=/dwh_actuariat/sasdata/sas%scan(&amp;amp;yearlist.,&amp;amp;k)/%scan(&amp;amp;cielist.,&amp;amp;h)/%scan(&amp;amp;subfolderlist.,&amp;amp;i);
				%let cie=%scan(&amp;amp;cielist.,&amp;amp;h);
				%let lob=%scan(&amp;amp;loblist.,&amp;amp;i);
				%let subfolder=%scan(&amp;amp;subfolderlist.,&amp;amp;i);
				
			
				/* Reading the total number of transactions and the sum of wrtn_prem_amt */

				libname src1 spde "&amp;amp;path./&amp;amp;cie./&amp;amp;subfolder.";


				proc sql noprint;
				insert into inputds
				select  "&amp;amp;cie." as cie,
						"&amp;amp;lob" as lob ,
						"&amp;amp;subfolder" as subfolder,
                        "&amp;amp;path./&amp;amp;cie./&amp;amp;subfolder." as cpath,
						"&amp;amp;Fname" as filename ,
						count(*) as NbTx , 
						coalesce(sum(WRTN_PREM_AMT),0) format=best12. as tot_wrtn_prem_amt
				from src1.&amp;amp;fname.;
				quit;
				
				
				/*************************************************************************/				

			%end;
		%end;
	%end;
%end;
run;
%mend validatinginputds;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;WARNING: Apparent invocation of macro TSLIT not resolved.&lt;BR /&gt;ERROR: Required operator not found in expression: %tslit(%scan(&amp;amp;cielist.,&amp;amp;h)) eq 'je' &lt;BR /&gt;ERROR: The macro VALIDATINGINPUTDS will stop executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 21:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Apparent-invocation-of-macro-TSLIT-not-resolved/m-p/964991#M45913</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-04-23T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent invocation of macro TSLIT not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Apparent-invocation-of-macro-TSLIT-not-resolved/m-p/964992#M45914</link>
      <description>&lt;P&gt;What is your setting for the SASAUTOS system option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run this code to check.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(getoption(sasautos));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is what I see when I run on Unix machines.&lt;/P&gt;
&lt;PRE&gt;  1? %put %sysfunc(getoption(sasautos));

(          '!SASROOT/sasautos'         )
&lt;/PRE&gt;
&lt;P&gt;The tslit.sas file should be in that directory.&amp;nbsp; Try compiling it manually.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include '!SASROOT/sasautos/tslit.sas' / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It originally was developed as part of the SAS/Intrnet product, but I think it should be included as part of BASE SAS at this point.&amp;nbsp; For example on Windows where the autocall macros are stored in multiple different folders it is in the ...\core\sasmacro directory.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 21:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Apparent-invocation-of-macro-TSLIT-not-resolved/m-p/964992#M45914</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-04-23T21:16:38Z</dc:date>
    </item>
  </channel>
</rss>

