<?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: loop within a load in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4203#M638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain a little bit more please? I didn't understand quite what you meant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe if you create an example of the kind of rows and fields you have and what you want to get in the end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jan 2018 11:53:28 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-01-20T11:53:28Z</dc:date>
    <item>
      <title>loop within a load in the script</title>
      <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4202#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a LOAD I have a field called, for example, ACTION.&lt;/P&gt;&lt;P&gt;Within the script I need to create a number of fields equal to the length of the field containing the character of the extracted position.&lt;/P&gt;&lt;P&gt;I can not do the cycle within the script.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 11:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4202#M637</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2018-01-20T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: loop within a load in the script</title>
      <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4203#M638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain a little bit more please? I didn't understand quite what you meant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe if you create an example of the kind of rows and fields you have and what you want to get in the end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 11:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4203#M638</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-20T11:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: loop within a load in the script</title>
      <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4204#M639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you are looking for something like the FROM_FIELD clause of the LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows you to take the content of a single FIELD and process it as if it is a regular LOAD ... FROM with format specifications and all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that way a single field can for instance contain a comma/tab/semicolon separated text that can be parsed into new fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 12:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4204#M639</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-20T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: loop within a load in the script</title>
      <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4205#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field of a table with a length of 128 characters.&lt;/P&gt;&lt;P&gt;every position of the field has a meaning and can have a particular value.&lt;/P&gt;&lt;P&gt;for example, the ACTION field of a table contains the following value:&lt;/P&gt;&lt;P&gt;AI + IIIII IIII ++ + I + I + IIIIIIIIIIIIIIIIIIIIIAIAIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII + + IIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIII.&lt;/P&gt;&lt;P&gt;I have to analyze the value of each position.&lt;/P&gt;&lt;P&gt;the A value in the first position, for example, refers to the Last Cost that goes Updated. in other cases there may be value I which means that the last cost must be ignored.&lt;/P&gt;&lt;P&gt;I can extract the various characters in a graphic with the MID function. I would like to do it in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 16:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4205#M640</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2018-01-20T16:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: loop within a load in the script</title>
      <link>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4206#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want each character to be loaded into a separate row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15164719169714062" jivemacro_uid="_15164719169714062"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MAPPING LOAD *&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; C1,C2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; A,|A&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I,|I&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; +,|+&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[EACH CHAR IN ROWS]:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() AS R#, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField( Mid( MapSubString('C',S),2) , '|' ) AS C &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; S&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AI+IIIIIIIII+++I+I+IIIIIIIIIIIIIIIIIIIIIAIAIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII++IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want each character in a separate field:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15164719601645134 jive_text_macro" jivemacro_uid="_15164719601645134"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;f=;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FOR i=1 TO 128&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; f=f&amp;amp;'&amp;nbsp; Mid(S,'&amp;amp;i&amp;amp;',1) AS C'&amp;amp;i&amp;amp;If(i&amp;lt;128,',')&amp;amp;Chr(10);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[EACH CHAR IN FIELDS]:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; RowNo() AS R#,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; $(f)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; S&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AI+IIIIIIIII+++I+I+IIIIIIIIIIIIIIIIIIIIIAIAIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII++IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 18:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-within-a-load-in-the-script/m-p/4206#M641</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-20T18:13:12Z</dc:date>
    </item>
  </channel>
</rss>

