<?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 Need to Create a folder and Name it by Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-Create-a-folder-and-Name-it-by-Date/m-p/806308#M661843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just thinking to backup my QVD file each day before loading so thought of creating a folder with Name as today date and then create QVD file Name as QVD_NAME_Today_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example, I will Create a Folder name 15-Mar-2015 and Inside that folder will create QVD file DIM_EMP_15_MAR_2015 as backup file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that how to create folder but when trying to create dynamic folder name (like 15-Mar-2015), I am not getting desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderName=Today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderPath=D:\Shivendoo\QVD BackUp\Dim Data Source QVD Files\$vFolderName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C MD "$vFolderPath";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 02:48:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-16T02:48:10Z</dc:date>
    <item>
      <title>Need to Create a folder and Name it by Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-Create-a-folder-and-Name-it-by-Date/m-p/806308#M661843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just thinking to backup my QVD file each day before loading so thought of creating a folder with Name as today date and then create QVD file Name as QVD_NAME_Today_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example, I will Create a Folder name 15-Mar-2015 and Inside that folder will create QVD file DIM_EMP_15_MAR_2015 as backup file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that how to create folder but when trying to create dynamic folder name (like 15-Mar-2015), I am not getting desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderName=Today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderPath=D:\Shivendoo\QVD BackUp\Dim Data Source QVD Files\$vFolderName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C MD "$vFolderPath";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 02:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-Create-a-folder-and-Name-it-by-Date/m-p/806308#M661843</guid>
      <dc:creator />
      <dc:date>2015-03-16T02:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Create a folder and Name it by Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-Create-a-folder-and-Name-it-by-Date/m-p/806309#M661844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the Script to Take Backup of QVD data files before scheduled reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have plan to keep backup of latest 6 days QVDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MMM-DD';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='D/MM/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Include=d:\shivendoo\qlikview config\qlikview_file_config.txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderNameTodayI='Date(Today())';&lt;/P&gt;&lt;P&gt;LET vFolderNameToday=$(vFolderNameTodayI);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFolderName7DaysOldI='Date(Today()-7)';&lt;/P&gt;&lt;P&gt;LET vFolderName7DaysOld=$(vFolderName7DaysOldI);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create A Folder With Name as Today Date&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C MD "$(vBKPDimFolderPath)\$(vFolderNameToday)";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Backup QVD Data before scheduled reloading&lt;/P&gt;&lt;P&gt;DIM_EMP_DATA:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM $(vDimQVDStoragePath)\DIM_EMP_DATA.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store the Backuped QVD in FOLDER Named as Date(Today())&lt;/P&gt;&lt;P&gt;STORE DIM_EMP_DATA INTO $(vBKPDimFolderPath)\$(vFolderNameToday)\$(vFolderNameToday)-DIM_EMP_DATA.QVD;&lt;/P&gt;&lt;P&gt;DROP TABLE DIM_EMP_DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Delete a Folder (&amp;amp; files under it) Named as Date(Today()-7) Using CMD Commands&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C RD /Q /S "$(vBKPDimFolderPath)\$(vFolderName7DaysOld)";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where qlikview_file_config.txt contains below values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vDimQVDStoragePath='D:\Shivendoo\Dim Data Source QVD Files';&lt;/P&gt;&lt;P&gt;SET vFactQVDStoragePath='D:\Shivendoo\Fact Data Source QVD Files';&lt;/P&gt;&lt;P&gt;SET vBKPDimFolderPath='D:\Shivendoo\QVD BackUp\Dim Data Source QVD Files';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 07:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-Create-a-folder-and-Name-it-by-Date/m-p/806309#M661844</guid>
      <dc:creator />
      <dc:date>2015-03-16T07:09:18Z</dc:date>
    </item>
  </channel>
</rss>

