<?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 Reading the path from ini in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235248#M714426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to post me your .ini file too to see what's going wrong&lt;/P&gt;&lt;P&gt;Edit: It works on my machine with the text you had posted above copied to a file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 May 2010 16:51:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-08T16:51:07Z</dc:date>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235241#M714419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have following things in ini. Let me know how can I read the Path which is there in ini and insert in to qlikview loadscript. This is very urgent requirement. Hope some one can help me out soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;[DBENG]&lt;BR /&gt;Start=1&lt;BR /&gt;Memory=300&lt;BR /&gt;TCPIP=1&lt;BR /&gt;&lt;BR /&gt;HIDE=0&lt;BR /&gt;Path=D:\PA42009\10012009&lt;BR /&gt;&lt;BR /&gt;[UpDn]&lt;BR /&gt;secondStock Rar=120&lt;BR /&gt;second=120&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 12:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235241#M714419</guid>
      <dc:creator />
      <dc:date>2010-05-07T12:08:08Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235242#M714420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD mid(@1,6) as mypath&lt;BR /&gt;FROM&lt;BR /&gt;&lt;D&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;BR /&gt;WHERE left(@1,5) = 'Path=';&lt;BR /&gt;&lt;/D&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;P.S. you need a slash to close the code section /code in square brackets []&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 12:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235242#M714420</guid>
      <dc:creator />
      <dc:date>2010-05-07T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235243#M714421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J M J G S,&lt;/P&gt;&lt;P&gt;Thanks for your help. I need to check whether it works or not. But in the mean time can you please explain how it works. As the source which I have posted is just the sample. So I need to check how it works in the original ini.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 12:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235243#M714421</guid>
      <dc:creator />
      <dc:date>2010-05-07T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235244#M714422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="margin:0px;"&gt;&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;mid(@1,6) // What is the use of @ here. It is not given in the tutorial&lt;BR /&gt;&lt;BR /&gt;left(@1,5) = 'Path='; //What is the use of @ here. Also let me know what will be assigned in the 'Path='&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 12:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235244#M714422</guid>
      <dc:creator />
      <dc:date>2010-05-07T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235245#M714423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@1 contains the complete text line read from the file.&lt;/P&gt;&lt;P&gt;If you use the table files load wizard and point to an .ini file to read you will see this in the generated code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 13:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235245#M714423</guid>
      <dc:creator />
      <dc:date>2010-05-07T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235246#M714424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;LOAD mid(@1,6) as mypath&lt;BR /&gt;FROM&lt;BR /&gt;&lt;D&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;BR /&gt;WHERE left(@1,5) = 'Path=';&lt;BR /&gt;&lt;/D&gt;&lt;/PRE&gt;&lt;P&gt;P.S. you need a slash to close the code section /code in square brackets []&lt;/P&gt;&lt;DIV style="clear:both;"&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing I have tried in my sample application which is attached to it but it is not showing any values. Please check!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 05:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235246#M714424</guid>
      <dc:creator />
      <dc:date>2010-05-08T05:58:56Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235247#M714425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J M J G S,&lt;/P&gt;&lt;P&gt;I am looking forward for your reply. Please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 12:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235247#M714425</guid>
      <dc:creator />
      <dc:date>2010-05-08T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235248#M714426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to post me your .ini file too to see what's going wrong&lt;/P&gt;&lt;P&gt;Edit: It works on my machine with the text you had posted above copied to a file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 16:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235248#M714426</guid>
      <dc:creator />
      <dc:date>2010-05-08T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235249#M714427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; subfield(@1, '=', 1) as Variable,&lt;BR /&gt; subfield(@1, '=', 2) as Value&lt;BR /&gt;FROM D:\BI\QlikView\Examples\ini-file.ini (txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;BR /&gt;WHERE wildmatch(@1, '*=*') &amp;gt; 0;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 17:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235249#M714427</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-05-08T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235250#M714428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of reading the value, inserting in a variable and using the variabe in a subsequent LOAD.&lt;/P&gt;&lt;P&gt;LOAD @2 as Path&lt;BR /&gt;FROM readinii.ini&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is '=', msq)&lt;BR /&gt;WHERE @1 = 'Path'&lt;BR /&gt;;&lt;BR /&gt;LET vPath = peek('Path');&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;FROM $(vPath)\myfile.txt&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 22:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235250#M714428</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-05-08T22:49:33Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235251#M714429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;You need to post me your .ini file too to see what's going wrong&lt;BR /&gt;Edit: It works on my machine with the text you had posted above copied to a file&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have posted the ini file. Please check!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 07:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235251#M714429</guid>
      <dc:creator />
      <dc:date>2010-05-10T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235252#M714430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rikab&lt;/P&gt;&lt;P&gt;Misunderstanding, you sent me your load script which looks correct to me. To see what is going wrong I will need to get your actual ini file from which you want to extract the path.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235252#M714430</guid>
      <dc:creator />
      <dc:date>2010-05-10T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235253#M714431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;Misunderstanding, you sent me your load script which looks correct to me. To see what is going wrong I will need to get your actual ini file from which you want to extract the path. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes! It was a misunderstanding. I am able to get the path now.&lt;/P&gt;&lt;P&gt;Can you do me a help. Can you please explain how it works. So that I can do the required changes myself to read the information from other ini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 11:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235253#M714431</guid>
      <dc:creator />
      <dc:date>2010-05-10T11:27:30Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235254#M714432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;P&gt;the load will read line for line through your ini file. You access the information of the read in line through the @1 reference.&lt;/P&gt;&lt;P&gt;You are interested in lines starting with "Path=", that is why the script has a where condition.&lt;/P&gt;&lt;P&gt;The left(p1,p2) function will return the p2 number of characters from the p1 string, this is compared to the fixed string 'Path='.&lt;/P&gt;&lt;P&gt;As you are interested in the path itself the mid(p1,p2) function will give you the part of the string starting at character position p2.&lt;/P&gt;&lt;P&gt;You can read about the functions in the QlikView help file or in the documentation. The documentation file is located in the installation directory, in a standard installation it will be in the folder&lt;/P&gt;&lt;P&gt;c:\Program Files\QlikView\Documentation&lt;/P&gt;&lt;P&gt;If you can not follow these descriptions you might need to get some professional help building the app or join a class to get you up and running.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 11:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235254#M714432</guid>
      <dc:creator />
      <dc:date>2010-05-10T11:47:59Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235255#M714433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;You access the information of the read in line through the @1 reference. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes! Now managed to get something how that script works now. But only thing which I am not able to understand is the above line. I also referred the tutorial but there is not even one example of mid function with @.&lt;/P&gt;&lt;P&gt;Can you please explain little more? So for the trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 12:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235255#M714433</guid>
      <dc:creator />
      <dc:date>2010-05-10T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235256#M714434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;P&gt;In Book 1, page 309 you find the explanation of the load statement.&lt;/P&gt;&lt;P&gt;You refer to fields by either using a fieldname, the @&amp;lt;fieldnumber&amp;gt; syntax or by specifically extracting characters from specified positions (@&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;.&lt;/P&gt;&lt;P&gt;As not all of our lines look the same we simply load every line into &amp;lt;Field_1&amp;gt;, which is accessed in the script specifying @1. So @1 contains a whole line of your ini file and this is repeated for every line in the file.&lt;/P&gt;&lt;P&gt;I am running out of words - I can't teach you how to program - start to read books or educate yourself otherwise on the concepts of programming.&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 13:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235256#M714434</guid>
      <dc:creator />
      <dc:date>2010-05-10T13:38:33Z</dc:date>
    </item>
    <item>
      <title>Reading the path from ini</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235257#M714435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Juerg Maier JmiD GmbH Schweiz wrote:&lt;BR /&gt;In Book 1, page 309 you find the explanation of the load statement.&lt;BR /&gt;You refer to fields by either using a fieldname, the @&amp;lt;fieldnumber&amp;gt; syntax or by specifically extracting characters from specified positions (@&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;.&lt;BR /&gt;As not all of our lines look the same we simply load every line into &amp;lt;Field_1&amp;gt;, which is accessed in the script specifying @1. So @1 contains a whole line of your ini file and this is repeated for every line in the file.&lt;BR /&gt;I am running out of words - I can't teach you how to program - start to read books or educate yourself otherwise on the concepts of programming. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for your help and suggestion I will take this into consideration &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 14:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-the-path-from-ini/m-p/235257#M714435</guid>
      <dc:creator />
      <dc:date>2010-05-10T14:06:31Z</dc:date>
    </item>
  </channel>
</rss>

