<?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 Calling Subroutine in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293495#M1179704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in a similar predicament as you are. Except in my case, I want to use a subroutine to apply transformations to fields in several different tables as they're loaded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most elegant thing that popped into my head was to use a subroutine containing all of my transformations, and apply those to the fields within a load statement (the alternative is to use a bunch of nestled functions, or to use stacked load statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my sub defined as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sub normalize_name (name) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = subfield(name, '_', 1); // remove numerals from end of resource name&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = replace(normalized_name, ', ', ','); // remove the space following the comma in the resource name&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview doesn't show any syntax errors with that, and on reload, it steps through that with no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call it in the load statement as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load call normalize_name (resource) as normalized_name, *;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But everything after the call statement on that line is underlined in red (indicating a syntax error). My load statement is above another load statement that provides the 'resource' field. The field name and capitalization is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the reference manual doesn't really give too much information on subroutines (where are they valid to be used, etc). The syntax given for call in the reference manual and help docs is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call name ([ paramlist ])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming at this point that call is not valid within a load statement.&lt;STRONG&gt; &lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2012 22:59:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-02T22:59:28Z</dc:date>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293494#M1179703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi, &lt;/DIV&gt;&lt;DIV&gt;for my current qlikview project I need to calculate the next working day for any given date.So far i have a master calendar with a field that indicates if it's a working day or holiday(including weekend).So i thought of coding a subroutine like this :&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;SUB Next_Day (Date)&lt;BR /&gt; end = 0;&lt;BR /&gt; counter = 1;&lt;BR /&gt; do while end=0&lt;BR /&gt; Date=Date+counter;&lt;BR /&gt; tipo=lookup(Festivo,Key_Date,Date,Master_Calendar);&lt;BR /&gt; if tipo='Festivo' then;counter=counter+1; else;end=1;endif&lt;BR /&gt; loop&lt;BR /&gt;END SUB&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;i'm not sure if it works as i'm unable to call it.In my ideal scenario I would use my routine in a load sentence like the rest of qlikview functions :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;load *,&lt;/DIV&gt;&lt;DIV&gt; Next_Day(date) as Next_Day_Date&lt;/DIV&gt;&lt;DIV&gt;resident master_calendar;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;but it gives error, i have tried to use it in a loop like this :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;LET Calendar_Rows = NoOfRows('Master_Calendar'); &lt;/DIV&gt;&lt;DIV&gt;for i=1 to $(Calendar_Rows) // loop through every row&lt;/DIV&gt;&lt;DIV&gt; let Fecha = FieldValue('Key_Date',$(i)); &lt;/DIV&gt;&lt;DIV&gt; let Fecha_Alt = call Next_Day(Fecha);&lt;BR /&gt; &lt;BR /&gt;next&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;but it doesn't work either.I also don't know how to write the field in the table , I would prefer doing it in the load sentence.After reading some community posts, I have come to the conclusion that is not possible to use subs in load sentences or inside loops, which leaves the subroutine sentece worthless to me.So my questions would be :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Which is the correct way of calling a function and obtain the return value?&lt;/DIV&gt;&lt;DIV&gt;Which are the limitations using subroutines?&lt;/DIV&gt;&lt;DIV&gt;Is it possible to use them inside load sentences? &lt;/DIV&gt;&lt;DIV&gt;Is it possible to use them inside loop sentences(do..while, for... next)?&lt;/DIV&gt;&lt;DIV&gt;If it isn't possible to call subs from load sentences, how could I loop trough a date field in my table , use my routine, and store the new date in the same or another field? &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks alot to anyone who can help me.....&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 09:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293494#M1179703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-17T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293495#M1179704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in a similar predicament as you are. Except in my case, I want to use a subroutine to apply transformations to fields in several different tables as they're loaded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most elegant thing that popped into my head was to use a subroutine containing all of my transformations, and apply those to the fields within a load statement (the alternative is to use a bunch of nestled functions, or to use stacked load statements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my sub defined as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sub normalize_name (name) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = subfield(name, '_', 1); // remove numerals from end of resource name&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = replace(normalized_name, ', ', ','); // remove the space following the comma in the resource name&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview doesn't show any syntax errors with that, and on reload, it steps through that with no issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call it in the load statement as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load call normalize_name (resource) as normalized_name, *;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But everything after the call statement on that line is underlined in red (indicating a syntax error). My load statement is above another load statement that provides the 'resource' field. The field name and capitalization is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the reference manual doesn't really give too much information on subroutines (where are they valid to be used, etc). The syntax given for call in the reference manual and help docs is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call name ([ paramlist ])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming at this point that call is not valid within a load statement.&lt;STRONG&gt; &lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 22:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293495#M1179704</guid>
      <dc:creator />
      <dc:date>2012-03-02T22:59:28Z</dc:date>
    </item>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293496#M1179705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lord,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes ,after several tests it's clear that it is not possible to call subroutines from a load sentece, at least in version 10.I've been able to call them for testing purposes outside them but its useless to me, and it seems that also to you, anyway thanks for sharing your thoughts and lets hope they improve the subroutines part to be more useful and also improve the documentation, which I also think it's a little bit obscure in some areas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 11:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293496#M1179705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-05T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293497#M1179706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you should be able to do what you wanted in your first post by calling the sub in a loop similar to this code which converts Decimal numbers to Binary, the sub is setting the variable which is called by the loop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sub DecBin (Number) // Function to convert Dec to Binary &lt;/P&gt;&lt;P&gt;&amp;nbsp; LET Output = Floor(Number/POW(2,26),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FOR i = 25 to 0 step -1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LET Remainder = Mod(Number,POW(2,$(i)+1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LET Output =&amp;nbsp; Output &amp;amp; Floor(Remainder/POW(2,$(i)),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT i;&lt;/P&gt;&lt;P&gt; End Sub;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FOR x = 1 to NoOfRows('USERS')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; tmp:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD userAccountControl as NumberSubmit resident USERS where RecRef = $(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let tmpNumberSubmit = FieldValue('NumberSubmit',1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL DecBin($(tmpNumberSubmit));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; BinValues: // store Binary value into a temporary separate table for now&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RecRef AS RecBack, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $(Output) as BinaryValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident USERS Where RecRef = $(x);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NEXT x;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is fine if the table isn't too large to loop through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 11:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293497#M1179706</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-03-05T11:19:27Z</dc:date>
    </item>
    <item>
      <title>Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293498#M1179707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lord,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in your case you would be better off using dynamically built scripts along the lines of this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FName1_LName1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FName2_LName2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FName3_LName3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FName4_LName4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Data2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; customer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fcustomer1_Lcustomer1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fcustomer2_Lcustomer2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fcustomer3_Lcustomer3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fcustomer4_Lcustomer4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;//Cleanse routine&lt;BR /&gt;SET vCleanseMaster =&amp;nbsp; subfield(xyz,chr(95),1); // Use ANSI reference (chr(95) rather than actual character, xyz is a holder value of your choice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCleanse1 = Replace('$(vCleanseMaster)','xyz','name');&lt;BR /&gt;CleansedData1:&lt;BR /&gt;LOAD $(vCleanse1) as CleansedName resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCleanse1 = Replace('$(vCleanseMaster)','xyz','customer');&lt;BR /&gt;CleansedData2:&lt;BR /&gt;LOAD $(vCleanse1) as CleansedCustomer resident Data2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 11:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293498#M1179707</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-03-05T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293499#M1179708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 class="title entry-title" style="margin: 0 0 0.5em; background: transparent; color: #222222;"&gt;Qlikview Sub Routine&lt;/H1&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;Few people know that qlikview code can be set up within sub routines. I find this to be a very helpful tool to use in situations where I may not want to reload the entire script. The most common use case for me is the QVD generator. Often times while I am developing, I only want to reload one or two QVDs and not the entire set. While I could comment and uncomment large portions of code or rearrange my script and use EXIT SCRIPT, I find that using sub routines are faster and cleaner.&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;Creating and using sub routines are easy. First, write you script as you normally would and then give your routine a name using SUB &amp;lt;name&amp;gt;. Then close your sub using END Sub.&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;SUB ProductLoad&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;Product:&lt;BR /&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;ListPrice,&lt;BR /&gt;Name as ProductName;&lt;BR /&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;SQL&lt;/SPAN&gt; SELECT *&lt;BR /&gt;FROM Product;&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;STORE&lt;/SPAN&gt; Product &lt;SPAN style="background: transparent; color: #0000ff;"&gt;INTO&lt;/SPAN&gt; Product.QVD (&lt;SPAN style="background: transparent; color: #0000ff;"&gt;QVD&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;DROP&lt;/SPAN&gt; &lt;SPAN style="background: transparent; color: #0000ff;"&gt;Table&lt;/SPAN&gt; Product;&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;END SUB&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;Once I have created my set of sub routines, I can use the CALL command to only run the ones that I want. It is important that the call command comes &lt;STRONG style="background: transparent;"&gt;after&lt;/STRONG&gt; the scripting of the sub routines. For this reason, I have all of my call commands as the last tab of my script. Now, I can simply comment and uncomment which sub routines I want to run without having to alter anything else in my load script. Only the sub routine that is being called will run and any other sub routines will simply be ignored.&lt;/P&gt;&lt;P style="margin: 0 0 1.2em; background: transparent;"&gt;&lt;SPAN style="background: transparent; color: #339966;"&gt;//Call SalesLoad;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background: transparent; color: #0000ff;"&gt;Call&lt;/SPAN&gt; ProductLoad;&lt;BR /&gt;&lt;SPAN style="background: transparent; color: #339966;"&gt;//Call CustomerLoad;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293499#M1179708</guid>
      <dc:creator>subhash_gherade</dc:creator>
      <dc:date>2018-01-31T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Subroutine</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293500#M1179709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subhash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we use these calls programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had 02 QVDs and both have similar 'Calls Tab' but different sub routines. Now I have merged both QVDs and wrote all scripts in 01 QVD. &lt;/P&gt;&lt;P&gt;Previously my QVD-A runs on a schedule of 1 hour time difference and the other QVD-B runs after 24 hours daily. Now as I have consolidated both QVDs, I have to run some 'Calls' on 1 hour difference and the rest should be called as per QVD-B scenarios i.e. after 24 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I handle these Call dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;QVD-A:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ProductLoad;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ItemLoad;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; CategoryLoad;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;QVD-B:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ProductLoad_1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ItemLoad_2;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; CategoryLoad_3;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Consolidated QVD:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial;"&gt;if(variable = 1 hour schedule) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ProductLoad;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ItemLoad;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; CategoryLoad;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #339966; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;else(variable = 24 hours schedule) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ProductLoad_1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt; ItemLoad_2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="background-position: initial; color: #0000ff;"&gt;Call&lt;/SPAN&gt; CategoryLoad_3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Above is the desired scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Araza&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 09:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Subroutine/m-p/293500#M1179709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T09:33:49Z</dc:date>
    </item>
  </channel>
</rss>

