<?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 How to identify line break in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147312#M716865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is not fixed / delimation for the line break but i can identify the postion of break through the value of field CH which always contains the Value CH000 and there is no anyother field present which contain the same value so i can identify the position through this field but i dont know how to do this qlikview. Below is the code which i was trying to identify the position next line. Please help&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; @&amp;amp;(index(@1:1330T,'CH000')):(index(@1:1330T,'CH000')+2)T as [CH], // X(02)&lt;BR /&gt; @&amp;amp;(index(@1:1330T,'CH000')+2):(index(@1:1330T,'CH000')+21)T as [CH_CD_NO],&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jun 2009 22:50:39 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2009-06-20T22:50:39Z</dc:date>
    <item>
      <title>How to identify line break</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147311#M716864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am parsing a data from a text file and reading two line as a single record for QlikView. I wanted to find out the line break in text file because the length of the last field in the first line of the record varies.&lt;/P&gt;&lt;P&gt;Can any one please help me or I have to use if condition for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;$(CurrentFileName):&lt;BR /&gt;LOAD&lt;BR /&gt;// Line 1 of the text file&lt;BR /&gt; @1:2T as [PH]&lt;BR /&gt; ,@3:21T as [CD_NO]&lt;BR /&gt; ,@6:19T as [MID_14]&lt;BR /&gt; ,@20:20T as [Replacement]&lt;BR /&gt; ,@22:24T as [PH_FILLER1]&lt;BR /&gt; ,@25:54T as [FIRST_NAME]&lt;BR /&gt; ,@55:84T as [MIDDL_NAME]&lt;BR /&gt; ,@85:114T as [LAST_NAME]&lt;BR /&gt; ,@115:133T as [NATIONALITY]&lt;BR /&gt; ...............&lt;BR /&gt;// Line 2 of the text file&lt;BR /&gt;@587:588T as [CH],&lt;BR /&gt;@589:607T as [CH_CD_NO],&lt;BR /&gt;@608:633T as [EMBOSSING_NAME],&lt;BR /&gt;@634:642T as [C_LIMIT],&lt;BR /&gt;@643:645T as [CURRENCY],&lt;BR /&gt;@646:649T as [AUTH_STS],&lt;BR /&gt;@650:652T as [D_DAYS],&lt;BR /&gt;@653:653T as [FILLER_CH1],&lt;BR /&gt;@654:657T as [VALID_FRMDAT],&lt;BR /&gt;&lt;BR /&gt;FROM [$(Path)$(XHB.txt)] (ansi, fix, no labels, header is line, record is 2 lines);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 19:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147311#M716864</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-06-20T19:43:05Z</dc:date>
    </item>
    <item>
      <title>How to identify line break</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147312#M716865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is not fixed / delimation for the line break but i can identify the postion of break through the value of field CH which always contains the Value CH000 and there is no anyother field present which contain the same value so i can identify the position through this field but i dont know how to do this qlikview. Below is the code which i was trying to identify the position next line. Please help&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; @&amp;amp;(index(@1:1330T,'CH000')):(index(@1:1330T,'CH000')+2)T as [CH], // X(02)&lt;BR /&gt; @&amp;amp;(index(@1:1330T,'CH000')+2):(index(@1:1330T,'CH000')+21)T as [CH_CD_NO],&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 22:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147312#M716865</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-06-20T22:50:39Z</dc:date>
    </item>
    <item>
      <title>How to identify line break</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147313#M716866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just need to separate in two rows, this will work fine :&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;load&lt;BR /&gt; subfield(raw_text,'CH000',1) as row1,&lt;BR /&gt; subfield(raw_text,'CH000',1) as row2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; raw_text&lt;BR /&gt; this_is_variable_textCH000this_is_secondline&lt;BR /&gt;];&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2009 16:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147313#M716866</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-06-21T16:27:07Z</dc:date>
    </item>
    <item>
      <title>How to identify line break</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147314#M716867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yves, I think no one couldnt understand my requirement. But i got a clue from Yves code. Below is the required code which i was expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;$(CurrentFileName):&lt;BR /&gt;LOAD // Line 1 of the text file&lt;BR /&gt; @1:2T as [PH]&lt;BR /&gt; ,@3:21T as [CD_NO]&lt;BR /&gt; ,@6:19T as [MID_14]&lt;BR /&gt; ,@20:20T as [Replacement]&lt;BR /&gt; ,@22:24T as [PH_FILLER1]&lt;BR /&gt; ,@25:54T as [FIRST_NAME]&lt;BR /&gt; ,@55:84T as [MIDDL_NAME]&lt;BR /&gt; ,@85:114T as [LAST_NAME]&lt;BR /&gt; ,@115:133T as [NATIONALITY]&lt;BR /&gt; ............... // Line 2 of the text filemid(@1:1330T,index(@1:1330T,'CH000'),2) as [CH],// X(02)&lt;BR /&gt;&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+2,19) as [CH_CD_NO],// X(19) CARD NUMBER&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+21,26) as [EMBOSSING_NAME],// X(26) EMBOSSING NAME&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+47,9) as [C_LIMIT],// 9(09) CARD LEVEL LIMIT&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+56,3) as [CURRENCY],// X(03) BILLING CURRENCY&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+59,4) as [AUTH_STS],// X(04) AUTORIZATION STATUS&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+63,3) as [D_DAYS],// 9(03) DAYS DELINQUENCY&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+66,1) as [FILLER_CH1],// X(01)&lt;BR /&gt;mid(@1:1330T,index(@1:1330T,'CH000')+67,4) as [VALID_FRMDAT] // 9(04) EXPIRY DATE - VALID FROM&lt;BR /&gt;&lt;BR /&gt;FROM [$(Path)$(XHB.txt)] (ansi, fix, no labels, header is line, record is 2 lines);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2009 18:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-line-break/m-p/147314#M716867</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-06-21T18:31:22Z</dc:date>
    </item>
  </channel>
</rss>

