<?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 Call subroutine with table name as argument in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646296#M1076316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm getting the following error: "Script line error" when I call a subroutine. I'm just trying to learn how to use procedures..&lt;/P&gt;&lt;P&gt;I've tryed with many ways to call the subroutine, but i always get the same error.&lt;/P&gt;&lt;P&gt;Can anybody please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;[Hoja1]:&lt;/P&gt;&lt;P&gt;LOAD CAS_TRANSIT_ID, CARD_NUMBER, ESTADO, RUT, TERMINAL, KIOSCO, SERVICIO, CTTO, RUT_EMPRESA, CENTRO_COSTO, RAZON_SOCIAL, GERENCIA, TRANSIT_DATE, INSERT_DATE FROM [..\..\ConsumosExcel\ConsumoExcel2014-06.xlsm] (ooxml, embedded labels, table is Hoja1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vVar ='Hola';&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos(Hoja1);&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos('Hoja1');&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos($(vVar));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB testTransformarDatos(vTablaOrigen)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE $(vTablaOrigen);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 14:40:47 GMT</pubDate>
    <dc:creator>cristian_av</dc:creator>
    <dc:date>2014-07-24T14:40:47Z</dc:date>
    <item>
      <title>Call subroutine with table name as argument</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646296#M1076316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm getting the following error: "Script line error" when I call a subroutine. I'm just trying to learn how to use procedures..&lt;/P&gt;&lt;P&gt;I've tryed with many ways to call the subroutine, but i always get the same error.&lt;/P&gt;&lt;P&gt;Can anybody please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;[Hoja1]:&lt;/P&gt;&lt;P&gt;LOAD CAS_TRANSIT_ID, CARD_NUMBER, ESTADO, RUT, TERMINAL, KIOSCO, SERVICIO, CTTO, RUT_EMPRESA, CENTRO_COSTO, RAZON_SOCIAL, GERENCIA, TRANSIT_DATE, INSERT_DATE FROM [..\..\ConsumosExcel\ConsumoExcel2014-06.xlsm] (ooxml, embedded labels, table is Hoja1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vVar ='Hola';&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos(Hoja1);&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos('Hoja1');&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos($(vVar));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB testTransformarDatos(vTablaOrigen)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE $(vTablaOrigen);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646296#M1076316</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2014-07-24T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Call subroutine with table name as argument</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646297#M1076317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Hojal]:&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB testTransformarDatos(vTablaOrigen)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE $(vTablaOrigen);&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vVar ='Hojal';&lt;/P&gt;&lt;P&gt;//CALL testTransformarDatos(Hoja1);&lt;/P&gt;&lt;P&gt;//CALL testTransformarDatos('Hoja1');&lt;/P&gt;&lt;P&gt;CALL testTransformarDatos('$(vVar)');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646297#M1076317</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-24T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call subroutine with table name as argument</title>
      <link>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646298#M1076318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know that i have to put the procedure on the first tab..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-subroutine-with-table-name-as-argument/m-p/646298#M1076318</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2014-07-24T15:53:17Z</dc:date>
    </item>
  </channel>
</rss>

