<?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: Getting filename Using File Source in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416202#M9318</link>
    <description>&lt;P&gt;not sure what you mean .. at a script level .. this is in replicate using "file" as a source .. QlikView has different options i think.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 18:00:17 GMT</pubDate>
    <dc:creator>Roger_Sheets</dc:creator>
    <dc:date>2024-02-07T18:00:17Z</dc:date>
    <item>
      <title>Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416145#M9315</link>
      <description>&lt;P&gt;has anyone found a way to capture the filename as a column when you're importing from a file?&lt;/P&gt;
&lt;P&gt;we get daily files that all have the "date" as part of the filename .. i'd love to be able to capture the entire filename (heck even the entire path &amp;amp; filename would be acceptable) so i know exactly which file a record comes from.&lt;/P&gt;
&lt;P&gt;i've heard you can do something file preprocessing on the connection, but thats thru powershell, and i dont know that very well.&lt;/P&gt;
&lt;P&gt;i cannot believe the filename of all things isnt a parameter that's just captured by default .. Replicate certainly has to know the filename to open it and pull data from it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416145#M9315</guid>
      <dc:creator>Roger_Sheets</dc:creator>
      <dc:date>2024-02-07T16:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416201#M9317</link>
      <description>&lt;P&gt;If you're working in script level you can use the function FileName to extract the name of the file that is feeding the table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/FileFunctions/FileName.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/FileFunctions/FileName.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 17:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416201#M9317</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-02-07T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416202#M9318</link>
      <description>&lt;P&gt;not sure what you mean .. at a script level .. this is in replicate using "file" as a source .. QlikView has different options i think.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 18:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416202#M9318</guid>
      <dc:creator>Roger_Sheets</dc:creator>
      <dc:date>2024-02-07T18:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416206#M9319</link>
      <description>&lt;P&gt;If you're working inside Qliks environment, specifically at the loader script while loading tables.&lt;/P&gt;
&lt;P&gt;If you need to extract the file name of a file that is feeding a table you're loading, you can use the above function to do so. If you need to do it outside QlikView or Sense, not really sure then, sorry.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 18:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2416206#M9319</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-02-07T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2417103#M9366</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/205436"&gt;@pedrohenriqueperna&lt;/a&gt;&amp;nbsp;- You are replying to a Qlik REPLICATE topic. Not Qlikview - This is a different (more fun) animal!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/258097"&gt;@Roger_Sheets&lt;/a&gt;&amp;nbsp;Check the PRE PROCESSING option in the ADVANCE TAB.&lt;/P&gt;
&lt;P&gt;Be sure to read the Userguide many time, very carefully. It's not too hard, but details matter (as always)&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Setting up a File Pre-processing Command&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Your program will be executed on each of the input files, and &lt;STRONG&gt;should accept the following parameters:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;l The location of the input file(s) (as specified in the Location of full load data file(s) and/or the Change&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;File location)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;l The full path of the output file&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The output file(s) will be written to the following location:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PRODUCT_INSTALLATION\data\tasks\TASK_NAME\trans_files\OUTPUT_FILE_NAM&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 09:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2417103#M9366</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-02-09T09:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting filename Using File Source</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2417141#M9368</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/258097"&gt;@Roger_Sheets&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;, personally I do not think it's easy to get the file name dynamically. How about add the file name as one additional column value(s) by f&lt;SPAN&gt;ile preprocessing option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 10:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Getting-filename-Using-File-Source/m-p/2417141#M9368</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-09T10:58:19Z</dc:date>
    </item>
  </channel>
</rss>

