<?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 Table list into a table using Expression Engine Language(EEL) in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/569703#M17459</link>
    <description>&lt;P&gt;I am trying to replicate below code which I got from EEL documentation. When I used in Data Flux Expression node in Expression( not in pre or post expression) it is loading more records then actual number of tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string DSN
DSN="DataFlux Sample"
string connectStr
//Preparing the connection string
connectStr = "DSN=" &amp;amp; DSN
DBConnection dbConn
dbConn = dbConnect( connectStr )
string tablename
string datapath
string tcatalog
string tabletype
DBCursor cursTables
//Retrieve table information in a cursor
cursTables = dbConn.tablelist();
//Iterate through the cursor
while( cursTables.next() )
begin
datapath = cursTables.valuestring(0); &lt;BR /&gt;tcatalog =cursTables.valuestring(1); &lt;BR /&gt;tablename = cursTables.valuestring(2);
tabletype = cursTables.valuestring(3)
pushrow()
end
cursTables.release();&lt;/PRE&gt;&lt;P&gt;When I use call print("Table Name" &amp;amp;tablename ) instead of pushrow() then it only prints 10 table names in the log. Can anyone please explain why this is happening?&lt;/P&gt;&lt;P&gt;Also, a solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to use this concept to create a control table with all table names. Then extract data from all those tables using iterative method.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 05:54:50 GMT</pubDate>
    <dc:creator>Rama_V</dc:creator>
    <dc:date>2019-06-28T05:54:50Z</dc:date>
    <item>
      <title>Table list into a table using Expression Engine Language(EEL)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/569703#M17459</link>
      <description>&lt;P&gt;I am trying to replicate below code which I got from EEL documentation. When I used in Data Flux Expression node in Expression( not in pre or post expression) it is loading more records then actual number of tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string DSN
DSN="DataFlux Sample"
string connectStr
//Preparing the connection string
connectStr = "DSN=" &amp;amp; DSN
DBConnection dbConn
dbConn = dbConnect( connectStr )
string tablename
string datapath
string tcatalog
string tabletype
DBCursor cursTables
//Retrieve table information in a cursor
cursTables = dbConn.tablelist();
//Iterate through the cursor
while( cursTables.next() )
begin
datapath = cursTables.valuestring(0); &lt;BR /&gt;tcatalog =cursTables.valuestring(1); &lt;BR /&gt;tablename = cursTables.valuestring(2);
tabletype = cursTables.valuestring(3)
pushrow()
end
cursTables.release();&lt;/PRE&gt;&lt;P&gt;When I use call print("Table Name" &amp;amp;tablename ) instead of pushrow() then it only prints 10 table names in the log. Can anyone please explain why this is happening?&lt;/P&gt;&lt;P&gt;Also, a solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to use this concept to create a control table with all table names. Then extract data from all those tables using iterative method.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 05:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/569703#M17459</guid>
      <dc:creator>Rama_V</dc:creator>
      <dc:date>2019-06-28T05:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table list into a table using Expression Engine Language(EEL)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/570232#M17474</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code should work fine, if you paste it into the pre processing section of an expression node and add the following options&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;set the option "Generate rows when no parent is specified" in the node settings&lt;/LI&gt;
&lt;LI&gt;add the following in the expression section&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;seteof(true) // since GENERATE_ROWS is specified, this avoids infinite loop&lt;BR /&gt;return false // avoids duplicate row at end, since pushrow() is used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/570232#M17474</guid>
      <dc:creator>VincentRejany</dc:creator>
      <dc:date>2019-07-01T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table list into a table using Expression Engine Language(EEL)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/570414#M17479</link>
      <description>&lt;P&gt;Thanks Vincent.&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 00:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-list-into-a-table-using-Expression-Engine-Language-EEL/m-p/570414#M17479</guid>
      <dc:creator>Rama_V</dc:creator>
      <dc:date>2019-07-02T00:53:56Z</dc:date>
    </item>
  </channel>
</rss>

