<?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 while loading dictionary .sas7bdat tables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983264#M43656</link>
    <description>&lt;P&gt;SAS did what you asked it to do, remove the spaces between the strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using CATX() instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select catx(' ','data', memname, ';set',catx('.',libname,memname), ';run;')
    into :loading_code separated by '  '&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are copying actual datasets (and not physicalizing views) then&amp;nbsp; just use PROC COPY.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=CODING out=work memtype=data;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you only want some of the members then just generate the list of member names into a macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select memname into :memlist separated by ' ' ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And use it to generate a SELECT statement for the PROC COPY step.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 14:39:59 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2026-02-10T14:39:59Z</dc:date>
    <item>
      <title>Error while loading dictionary .sas7bdat tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983261#M43655</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to load dictionary tables in my script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this I used the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname coding "&amp;amp;path.\db_coding";

proc sql;
    select cats('data ', memname, '; set coding.', memname, '; run;')
    into :loading_code separated by '  '
    from dictionary.tables
    where libname = "CODING"; 
quit;

&amp;amp;loading_code;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The files are named:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rtv_ascn_pv&lt;/P&gt;
&lt;P&gt;tvx_tpr_pf&lt;/P&gt;
&lt;P&gt;Iit_scn_mn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While running the code I'm getting the following error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;36         &amp;amp;loading_code;
NOTE: Line generated by the macro variable "LOADING_CODE".
36           dataRTV_ASCN_PV;
             ______________
             180

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro variable "LOADING_CODE".
36                           set coding.RTV_ASCN_PV;
                             ___
                             180

ERROR 180-322: Statement is not valid or it is used out of proper order.

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone help me understanding what happening?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems a syntax issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983261#M43655</guid>
      <dc:creator>NewUsrStat</dc:creator>
      <dc:date>2026-02-10T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading dictionary .sas7bdat tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983264#M43656</link>
      <description>&lt;P&gt;SAS did what you asked it to do, remove the spaces between the strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using CATX() instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select catx(' ','data', memname, ';set',catx('.',libname,memname), ';run;')
    into :loading_code separated by '  '&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are copying actual datasets (and not physicalizing views) then&amp;nbsp; just use PROC COPY.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy in=CODING out=work memtype=data;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you only want some of the members then just generate the list of member names into a macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select memname into :memlist separated by ' ' ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And use it to generate a SELECT statement for the PROC COPY step.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 14:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983264#M43656</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-02-10T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading dictionary .sas7bdat tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983287#M43658</link>
      <description>&lt;P&gt;CATS removes&amp;nbsp;trailing blanks from&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; arguments, even if they are string constants. You can use the CAT function instead, as the blanks between the dataset names and the semicolons won't matter.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 17:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-while-loading-dictionary-sas7bdat-tables/m-p/983287#M43658</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-10T17:19:18Z</dc:date>
    </item>
  </channel>
</rss>

