<?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: Case statement with in clause in load editor in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131938#M752161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might have something to do with casting.&amp;nbsp; Does it run if you change it to the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;CASE WHEN JOB_NUM IN ('JOB_1', 'JOB_4', 'JOB_7') THEN 'MONDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_2', 'JOB_5', 'JOB_8') THEN 'TUESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_3', 'JOB_6', 'JOB_9') THEN 'WEDNESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE CAST(0 AS VARCHAR) END AS JOB_DAY&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 15:40:58 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2018-10-24T15:40:58Z</dc:date>
    <item>
      <title>Case statement with in clause in load editor</title>
      <link>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131937#M752160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my load script I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT JOB_NUM, FIELD_2, FIELD_3, FIELD_4,&lt;/P&gt;&lt;P&gt;CASE WHEN JOB_NUM IN ('JOB_1', 'JOB_2', 'JOB_3') THEN 1 ELSE 0 END AS FLAG_1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE WHEN JOB_NUM IN ('JOB_4', 'JOB_5', 'JOB_6') THEN 1 ELSE 0 END AS FLAG_2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE WHEN JOB_NUM IN ('JOB_7, 'JOB_8', 'JOB_9') THEN 1 ELSE 0 END AS FLAG_3,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;CASE WHEN JOB_NUM IN ('JOB_1', 'JOB_4', 'JOB_7') THEN 'MONDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_2', 'JOB_5', 'JOB_8') THEN 'TUESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_3', 'JOB_6', 'JOB_9') THEN 'WEDNESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE 0 END AS JOB_DAY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM JOB_CONTROL.JOB_CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then save this as a temporary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs and works well when I comment out the red text but errors when I include the text in red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131937#M752160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement with in clause in load editor</title>
      <link>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131938#M752161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might have something to do with casting.&amp;nbsp; Does it run if you change it to the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;CASE WHEN JOB_NUM IN ('JOB_1', 'JOB_4', 'JOB_7') THEN 'MONDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_2', 'JOB_5', 'JOB_8') THEN 'TUESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN JOB_NUM IN ('JOB_3', 'JOB_6', 'JOB_9') THEN 'WEDNESDAY_JOBS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE CAST(0 AS VARCHAR) END AS JOB_DAY&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 15:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131938#M752161</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2018-10-24T15:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement with in clause in load editor</title>
      <link>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131939#M752162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't seem to like that either! Thanks for your help though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 08:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131939#M752162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement with in clause in load editor</title>
      <link>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131940#M752163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved by creating the column when I loaded data from the table back in instead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-statement-with-in-clause-in-load-editor/m-p/131940#M752163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T15:45:20Z</dc:date>
    </item>
  </channel>
</rss>

