<?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: Load error with OSuser() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166394#M38368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we use Config: table as Mapping Load??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Sep 2017 08:15:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-09T08:15:30Z</dc:date>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166387#M38361</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 get an error for anything that goes after&lt;/P&gt;&lt;P&gt;load UPPER(OSuser()) as NTuser;&lt;/P&gt;&lt;P&gt;in my script. When I remove that line all is fine. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 18:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166387#M38361</guid>
      <dc:creator />
      <dc:date>2010-05-26T18:42:41Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166388#M38362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the complete script please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 18:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166388#M38362</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-26T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166389#M38363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load UPPER(OSuser()) as NTuser;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='M/D/YYYY';&lt;BR /&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let NumOfYears = $(YearsBack) + $(YearsForward) + 1;&lt;BR /&gt;Let NumOfMonths = $(NumOfYears)*12;&lt;BR /&gt;Let NumOfDays = $(NumOfYears)*365;&lt;BR /&gt;Let StartYear = Year(floor(now())) - $(YearsBack);&lt;BR /&gt;Let StartDate = Num(MakeDate($(StartYear),$(FiscalMoShift)+1));&lt;BR /&gt;&lt;BR /&gt;Let LastDateKey= Date(floor(now()),'MM-DD-YYYY');&lt;BR /&gt;&lt;BR /&gt;Date_src:&lt;BR /&gt;LOAD&lt;BR /&gt;$(StartDate) + iterno()-1 as DateStamp autogenerate 1 while iterno() &amp;lt;= $(NumOfDays) + 1;&lt;BR /&gt;&lt;BR /&gt;Dates:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;DateStamp,&lt;BR /&gt;date(floor(DateStamp)) as DateKey,&lt;BR /&gt;day(DateStamp) as Day,&lt;BR /&gt;month(DateStamp) as Month,&lt;BR /&gt;year(DateStamp) as Year,&lt;BR /&gt;num(Month(DateStamp) + (Year(DateStamp) - $(StartYear))*12) as MonthNum,&lt;BR /&gt;Date(DateStamp,'MMMYY') as MonthYr,&lt;BR /&gt;Dual('Q' &amp;amp; ceil(((mid(date(DateStamp,'YYYY-MM-DD'),6,2)))/3), ceil(((mid(date(DateStamp,'YYYY-MM-DD'),6,2)))/3)) as Qtr,&lt;BR /&gt;if(weekday(DateStamp)&amp;gt;4, 0,1) as WorkDay&lt;BR /&gt;Resident Date_src;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 18:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166389#M38363</guid>
      <dc:creator />
      <dc:date>2010-05-26T18:54:14Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166390#M38364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have no table to load from.&lt;/P&gt;&lt;P&gt;Use this instead:&lt;/P&gt;&lt;P&gt;LET NTUser = UPPER(OSuser());&lt;/P&gt;&lt;P&gt;That should be good for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166390#M38364</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-26T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166391#M38365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Now, I'm trying the following script, which does not work:&lt;/P&gt;&lt;P&gt;LET NTUser = UPPER(OSuser());&lt;BR /&gt;&lt;BR /&gt;ConfigUsers:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; NTuser, NTuserGroup&lt;BR /&gt; MYDOMAIN\PPAN, Executive&lt;BR /&gt; MYDOMAIN\RTHAT, Executive&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Config:&lt;BR /&gt;load NTuser, NTuserGroup&lt;BR /&gt;resident ConfigUsers where NTuser='$(NTUser)';&lt;BR /&gt;&lt;BR /&gt;drop table ConfigUsers;&lt;/P&gt;&lt;P&gt;Any help appreciated!&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166391#M38365</guid>
      <dc:creator />
      <dc:date>2010-05-26T19:22:13Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166392#M38366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use this:&lt;/P&gt;&lt;P&gt;LET NTUser = UPPER(OSuser());&lt;BR /&gt;&lt;BR /&gt;ConfigUsers:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; NTuser, NTuserGroup&lt;BR /&gt; MYDOMAIN\PPAN, Executive&lt;BR /&gt; MYDOMAIN\RTHAT, Executive&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Config:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load NTuser, NTuserGroup&lt;BR /&gt;resident ConfigUsers where NTuser='$(NTUser)';&lt;BR /&gt;&lt;BR /&gt;drop table ConfigUsers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166392#M38366</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-26T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166393#M38367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet. Works nicely. Thnx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 19:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166393#M38367</guid>
      <dc:creator />
      <dc:date>2010-05-26T19:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load error with OSuser() function</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166394#M38368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we use Config: table as Mapping Load??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 08:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-with-OSuser-function/m-p/166394#M38368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-09T08:15:30Z</dc:date>
    </item>
  </channel>
</rss>

