<?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: Adding a static header row to multiple files split by AWK in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582211#M216230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hello Qlik Community Members- this discussion has was posted previously but accidentally deleted we are recreating the thread. If you have any helpful answers please feel free to respond.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/troyansky"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 11, 2011 11:50 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109921" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;I'm not familiar with awk, so I can't quite help with a solution outside of QlikView. If I had to do something like the, I'd read all the fields into QlikView and then create a "for"loop, running across all week numbers, and extract information just for that week and store it using the command STORE into txt files. This way, I think, the headers will be in...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;--------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:41 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109922" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to Oleg Troyansky&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;That seems like a good suggestion to figure out Oleg, because I would like the knowledge to do this 'splitting' technique within QlikView. Thank you for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Originally I had started to construct a concat string of all the different WkYr values to use with a 'For..Each' loop, but then QlikView started to get stubborn &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; and refused to chain-concatenate my string variable. Everything was pretty much a tanglement of variables &amp;amp; &lt;EM&gt;chr(39)'s&lt;/EM&gt; &amp;amp; &lt;EM&gt;','s&lt;/EM&gt; &amp;amp; whatnot...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Then I think I realized I could try it within a single loop and no second loop was needed. My attempt is below. When it arrives at this portion of the script I have the table 'Temp_Sort' which has a full listing of all my data which I would like to break out into weekly increment text files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;&lt;BR /&gt; MyWkYrs:&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; DISTINCT&lt;BR /&gt; &lt;STRONG&gt;WkYr&lt;/STRONG&gt;&lt;BR /&gt; RESIDENT Temp_Sort&lt;BR /&gt; ORDER BY &lt;STRONG&gt;WkYr&lt;/STRONG&gt; DESC;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vWkYrCount&lt;/EM&gt;&lt;/STRONG&gt;=NoOfRows('MyWkYrs');&lt;BR /&gt; &lt;STRONG&gt;TRACE&lt;/STRONG&gt; NoOfRows(vWkYrCount) = &lt;STRONG&gt;&lt;EM&gt;$(vWkYrCount)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;i&lt;/STRONG&gt; = 0 to &lt;STRONG&gt;vWkYrCount&lt;/STRONG&gt;-1&lt;BR /&gt; &lt;STRONG&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;curWeek&lt;/EM&gt;&lt;/STRONG&gt; = Peek('WkYr',&lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;STRONG&gt;MywkYrs&lt;/STRONG&gt;);&lt;BR /&gt; &lt;STRONG&gt;TRACE&lt;/STRONG&gt; curWeek = &lt;STRONG&gt;&lt;EM&gt;$(curWeek)&lt;/EM&gt;&lt;/STRONG&gt; and i = &lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//Put STORE ~&amp;gt; INTO statements here&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//START section to CREATE, STORE, then DROP each weekly increment table&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; [Purgatory$(curWeek)]:&lt;BR /&gt; NOCONCATENATE &lt;STRONG&gt;LOAD&lt;/STRONG&gt; *&lt;BR /&gt; RESIDENT Temp_Sort&lt;BR /&gt; WHERE &lt;STRONG&gt;WkYr&lt;/STRONG&gt; = &lt;STRONG&gt;&lt;EM&gt;$(curWeek)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;STORE&lt;/STRONG&gt; * FROM [Purgatory$(curWeek)] into [Purgatory$(curWeek).txt] (txt, delimiter is '\t');&lt;BR /&gt; &lt;STRONG&gt;DROP&lt;/STRONG&gt; Table [Purgatory$(curWeek)];&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//END section to CREATE, STORE, then DROP each weekly increment table&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Any thoughts on optimization, efficiency, etc.. would be welcome. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;--------------------------&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:43 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109923" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Also, any thoughts on how to suppress the double spacing when cutting pasting code would be nice. What settings am I missing? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; Sure does make it harder to read.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/troyansky"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:55 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109923" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Your code looks pretty good - this is exactly what I meant...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;The double-spacing has been a sore issue for me, too - I never know how to post the code correctly, and nothing worked for me quite well so far...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 4:31 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109925" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to Oleg Troyansky&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Delimit the script part with [ c o d e ] and [ / c o d e ] .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 9pt; text-align: right; background-color: transparent; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 4:29 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109921" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Yeeee, I am not the only one around using awk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;&lt;BR /&gt; #get the header&lt;BR /&gt; head -n 1 origfile.txt &amp;gt; header.txt&lt;BR /&gt; &lt;BR /&gt; #use the header&lt;BR /&gt; cat header.txt weekly.txt &amp;gt; result.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt; &lt;BR /&gt; -Alex&lt;BR /&gt; www.snowflakejoins.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 10:50 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109926" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to alxtoth&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Excellent suggestions Alexandru.. and these steps will work great if I am dealing with a small amount of files to repeat these steps on. The thing now is I need to figure out how to incorporate the naming convention of many output files. We are taking what could be several Yearly level flat file data sources and breaking them out into many Weekly level files, so I need some sort of naming convention functionality for the output files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;You will see in the example I posted in the first post, it will take any files with the 'Inventory' string prefix so it will grab Inventory2000, Inventory2001, Inventory2002 and break them all up. And the output file names will be based on the field name they are reading from, so the output formats are going to be Inventory200201, Inventory200202,..etc.. If I could just get the header row to be written in that loop everything would be perfect!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Here are some examples that came tantalizingly close but I still didn't solve how to modify.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://unstableme.blogspot.com/2009/09/split-file-using-awk-few-examples.html"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;http://unstableme.blogspot.com/2009/09/split-file-using-awk-few-examples.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;This example #1 takes a flat file and breaks it up when it finds a header row in the flat file based on a repeating string. In my case it was all raw data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;A href="http://unstableme.blogspot.com/2008/08/split-file-add-headers-awk-and-bash.html"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;http://unstableme.blogspot.com/2008/08/split-file-add-headers-awk-and-bash.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;This example will insert a header row, but it knows the length of each breakout file was a fixed, predetermined number of rows (4 rows). In my case the number of rows being written to each breakout file can vary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;So here this left me very, very close but still so far.. Also, I did wrap the post above in the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;tags, I even copied and pasted from Word but... still got double spacing. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 3:31 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109928" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;First split the files with awk. Than add the header in a for loop to all weekly files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 3:33 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109929" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to alxtoth&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;You migth want to use another text editor. Well, anything except Word.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/45333"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: inherit, serif; color: #3778c7; padding: 2pt; background-color: #f3f3f3;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 20:36:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-15T20:36:19Z</dc:date>
    <item>
      <title>Adding a static header row to multiple files split by AWK</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582209#M216228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;I am splitting up several .txt data files which each individually contained a different years worth of data. It turns out the requirement for the application will actually be using data files stored in weekly increments, not yearly. So in order to test the functionality I needed to break out the data in the yearly files into separate weekly files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;There were several step-intensive ways (i.e. cut &amp;amp; paste) I started to approach this before I decided there must be a more condensed solution. I managed to configure an awk statement that will now split up my data files meeting the naming convention, into separately and appropriately named files at the weekly level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;The problem I'm trying to fix is that I haven't been able to insert the column headers as the first row into each week's output file. Ideally I'd like to get this syntax into a single awk statement or perhaps a chained set of command-line directives. The statement and the data structure below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;awk -F "\t" '{close(f);f=$2}&lt;BR /&gt; {print &amp;gt; "Inventory"f".txt"}' Inventory*.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;STRONG style="mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; font-size: 10.0pt; mso-ansi-language: EN-US; mso-border-alt: none windowtext 0in; font-family: 'inherit','serif'; padding: 0in; border: none windowtext 1.0pt; mso-fareast-font-family: 'Times New Roman';"&gt;Cust# WkYr SKU InvWeek InvYear OnHand&lt;BR /&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;0000101348 201101 00105D 01 2011 25.000&lt;BR /&gt; 0000101348 201101 00106D 01 2011 4.000&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582209#M216228</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-04-15T20:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a static header row to multiple files split by AWK</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582210#M216229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;Maybe I should add... I am able to load from all my various text files as long as none of them contain a header row, using delimeter field number assignments within QlikView. I have a feeling since the header row is not present in the many individual .txt files, perhaps a small bit of performance is gained?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;LOAD&lt;BR /&gt; @1 As Cust#,&lt;BR /&gt; @2 As WkYr,&lt;BR /&gt; @4 As SKU,&lt;BR /&gt; @5 As InvYear,&lt;BR /&gt; @6 As OnHand&lt;BR /&gt; FROM&lt;BR /&gt; Mytextfiles.txt&lt;BR /&gt; (txt, codepage is 1252, no labels, delimiter is '\t', no quotes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;I always considered this an option but I was reluctant to modify the scripts to accomodate this. I would have rather adjusted the data sources to fit the scripts, rather than the opposite in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; background: white; vertical-align: baseline;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #3d3d3d; mso-ansi-language: EN-US;"&gt;If anyone has any tips or insight as to how I could automate adding the field names header row to a large number of .txt files being split apart from a larger file, I would appreciate your insight. Thanks so much! ~Evan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582210#M216229</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-04-15T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a static header row to multiple files split by AWK</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582211#M216230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hello Qlik Community Members- this discussion has was posted previously but accidentally deleted we are recreating the thread. If you have any helpful answers please feel free to respond.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/troyansky"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 11, 2011 11:50 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109921" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;I'm not familiar with awk, so I can't quite help with a solution outside of QlikView. If I had to do something like the, I'd read all the fields into QlikView and then create a "for"loop, running across all week numbers, and extract information just for that week and store it using the command STORE into txt files. This way, I think, the headers will be in...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;--------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:41 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109922" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to Oleg Troyansky&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;That seems like a good suggestion to figure out Oleg, because I would like the knowledge to do this 'splitting' technique within QlikView. Thank you for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Originally I had started to construct a concat string of all the different WkYr values to use with a 'For..Each' loop, but then QlikView started to get stubborn &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; and refused to chain-concatenate my string variable. Everything was pretty much a tanglement of variables &amp;amp; &lt;EM&gt;chr(39)'s&lt;/EM&gt; &amp;amp; &lt;EM&gt;','s&lt;/EM&gt; &amp;amp; whatnot...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Then I think I realized I could try it within a single loop and no second loop was needed. My attempt is below. When it arrives at this portion of the script I have the table 'Temp_Sort' which has a full listing of all my data which I would like to break out into weekly increment text files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;&lt;BR /&gt; MyWkYrs:&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; DISTINCT&lt;BR /&gt; &lt;STRONG&gt;WkYr&lt;/STRONG&gt;&lt;BR /&gt; RESIDENT Temp_Sort&lt;BR /&gt; ORDER BY &lt;STRONG&gt;WkYr&lt;/STRONG&gt; DESC;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vWkYrCount&lt;/EM&gt;&lt;/STRONG&gt;=NoOfRows('MyWkYrs');&lt;BR /&gt; &lt;STRONG&gt;TRACE&lt;/STRONG&gt; NoOfRows(vWkYrCount) = &lt;STRONG&gt;&lt;EM&gt;$(vWkYrCount)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;i&lt;/STRONG&gt; = 0 to &lt;STRONG&gt;vWkYrCount&lt;/STRONG&gt;-1&lt;BR /&gt; &lt;STRONG&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;curWeek&lt;/EM&gt;&lt;/STRONG&gt; = Peek('WkYr',&lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;STRONG&gt;MywkYrs&lt;/STRONG&gt;);&lt;BR /&gt; &lt;STRONG&gt;TRACE&lt;/STRONG&gt; curWeek = &lt;STRONG&gt;&lt;EM&gt;$(curWeek)&lt;/EM&gt;&lt;/STRONG&gt; and i = &lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//Put STORE ~&amp;gt; INTO statements here&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//START section to CREATE, STORE, then DROP each weekly increment table&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; [Purgatory$(curWeek)]:&lt;BR /&gt; NOCONCATENATE &lt;STRONG&gt;LOAD&lt;/STRONG&gt; *&lt;BR /&gt; RESIDENT Temp_Sort&lt;BR /&gt; WHERE &lt;STRONG&gt;WkYr&lt;/STRONG&gt; = &lt;STRONG&gt;&lt;EM&gt;$(curWeek)&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;STORE&lt;/STRONG&gt; * FROM [Purgatory$(curWeek)] into [Purgatory$(curWeek).txt] (txt, delimiter is '\t');&lt;BR /&gt; &lt;STRONG&gt;DROP&lt;/STRONG&gt; Table [Purgatory$(curWeek)];&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;//END section to CREATE, STORE, then DROP each weekly increment table&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Any thoughts on optimization, efficiency, etc.. would be welcome. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;--------------------------&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:43 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109923" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Also, any thoughts on how to suppress the double spacing when cutting pasting code would be nice. What settings am I missing? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; Sure does make it harder to read.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/troyansky"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 12, 2011 5:55 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109923" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Your code looks pretty good - this is exactly what I meant...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;The double-spacing has been a sore issue for me, too - I never know how to post the code correctly, and nothing worked for me quite well so far...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 4:31 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109925" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to Oleg Troyansky&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Delimit the script part with [ c o d e ] and [ / c o d e ] .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 9pt; text-align: right; background-color: transparent; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 4:29 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109921" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Yeeee, I am not the only one around using awk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 7.5pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #3d3d3d;"&gt;&lt;BR /&gt; #get the header&lt;BR /&gt; head -n 1 origfile.txt &amp;gt; header.txt&lt;BR /&gt; &lt;BR /&gt; #use the header&lt;BR /&gt; cat header.txt weekly.txt &amp;gt; result.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt; &lt;BR /&gt; -Alex&lt;BR /&gt; www.snowflakejoins.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/evankurowski"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;EvanKurowski&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 10:50 AM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109926" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to alxtoth&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Excellent suggestions Alexandru.. and these steps will work great if I am dealing with a small amount of files to repeat these steps on. The thing now is I need to figure out how to incorporate the naming convention of many output files. We are taking what could be several Yearly level flat file data sources and breaking them out into many Weekly level files, so I need some sort of naming convention functionality for the output files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;You will see in the example I posted in the first post, it will take any files with the 'Inventory' string prefix so it will grab Inventory2000, Inventory2001, Inventory2002 and break them all up. And the output file names will be based on the field name they are reading from, so the output formats are going to be Inventory200201, Inventory200202,..etc.. If I could just get the header row to be written in that loop everything would be perfect!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Here are some examples that came tantalizingly close but I still didn't solve how to modify.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://unstableme.blogspot.com/2009/09/split-file-using-awk-few-examples.html"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;http://unstableme.blogspot.com/2009/09/split-file-using-awk-few-examples.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;This example #1 takes a flat file and breaks it up when it finds a header row in the flat file based on a repeating string. In my case it was all raw data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;A href="http://unstableme.blogspot.com/2008/08/split-file-add-headers-awk-and-bash.html"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;http://unstableme.blogspot.com/2008/08/split-file-add-headers-awk-and-bash.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;This example will insert a header row, but it knows the length of each breakout file was a fixed, predetermined number of rows (4 rows). In my case the number of rows being written to each breakout file can vary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;So here this left me very, very close but still so far.. Also, I did wrap the post above in the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;tags, I even copied and pasted from Word but... still got double spacing. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 3:31 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109928" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to EvanKurowski&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;First split the files with awk. Than add the header in a for loop to all weekly files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/people/alxtoth"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3778c7;"&gt;alxtoth&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Apr 13, 2011 3:33 PM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;(&lt;/SPAN&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/18196#109929" title="Go to message"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;in response to alxtoth&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif'; color: darkgray;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;You migth want to use another text editor. Well, anything except Word.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qliktech-public.uat5.hosted.jivesoftware.com/thread/45333"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: inherit, serif; color: #3778c7; padding: 2pt; background-color: #f3f3f3;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-static-header-row-to-multiple-files-split-by-AWK/m-p/582211#M216230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T20:36:19Z</dc:date>
    </item>
  </channel>
</rss>

