# Toad Data Point stops working when entering a Case statement

**URL:** <https://forums.toadworld.com/t/toad-data-point-stops-working-when-entering-a-case-statement/34169>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [September 25, 2015, 11:23am UTC](https://forums.toadworld.com/t/toad-data-point-stops-working-when-entering-a-case-statement/34169 "2015-09-25T11:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jraguse](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@jraguse](https://forums.toadworld.com/u/jraguse)\
**Post date:** [September 25, 2015, 11:23am UTC](https://forums.toadworld.com/t/toad-data-point-stops-working-when-entering-a-case-statement/34169/1 "2015-09-25T11:23:52Z")

</div>

I have been attempting to enter a Case statement in the query builder section of Toad Data Point version 3.7.1. I am entering the case statement in the calculated field area. Shortly after I finish typing “case when {columnname} …”, Toad gives me an error message and closes. The same statement entered into the sql editor works with no issues. Any ideas as to what might be wrong?

---

<div class="post-metadata">

**Author:** ![GregDavis11009](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gregdavis11009/32/122_2.png) [@GregDavis11009](https://forums.toadworld.com/u/GregDavis11009)\
**Post date:** [September 28, 2015, 8:58am UTC](https://forums.toadworld.com/t/toad-data-point-stops-working-when-entering-a-case-statement/34169/2 "2015-09-28T08:58:13Z")

</div>

I am on 3.7.0.973 and have no problem creating a calculated field with a case statement. Are you using the calculated field dialog box? Also post your case statement so we can see it. Make sure you have an end at the end but no name for the field if you are using the dialog box as the name is already in the dialog box. Otherwise I don’t know why it is not working.

---

<div class="post-metadata">

**Author:** ![jraguse](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@jraguse](https://forums.toadworld.com/u/jraguse)\
**Post date:** [September 28, 2015, 2:09pm UTC](https://forums.toadworld.com/t/toad-data-point-stops-working-when-entering-a-case-statement/34169/3 "2015-09-28T14:09:35Z")

</div>

I had no problem setting this up today. However, Friday (9/25/15), I repeatedly had the same issue occur after trying the same case statement multiple times. Is it possible that the issue is occurring between Toad and our DB2 iseries database?

**From:** GregDavis11009 [[mailto:bounce-GregDavis11009@toadworld.com](mailto:bounce-GregDavis11009@toadworld.com)]

**Sent:** Monday, September 28, 2015 10:59 AM

**To:** [toaddatapoint@toadworld.com](mailto:toaddatapoint@toadworld.com)

**Subject:** RE: [Toad Data Point - Discussion Forum] Toad Data Point stops working when entering a Case statement

**[RE: Toad Data Point stops working when entering a Case statement](http://www.toadworld.com/products/toad-data-point/f/36/p/25493/56349#56349)**

Reply by GregDavis11009

I am on 3.7.0.973 and have no problem creating a calculated field with a case statement. Are you using the calculated field dialog box? Also post your case statement so we can see it. Make sure you have an end at the end but no name for the field if you are using the dialog box as the name is already in the dialog box. Otherwise I don’t know why it is not working.

To reply, please reply-all to this email.

[Stop receiving emails](http://www.toadworld.com/products/toad-data-point/f/36/t/25493?subscribe=false) on this subject.

Or [  
Unsubscribe from Toad Data Point - General](http://www.toadworld.com/products/toad-data-point/f/36?subscribe=false) notifications altogether.

Toad Data Point - Discussion Forum

[Flag](http://www.toadworld.com/products/toad-data-point/f/36/p/25493/56349?AbuseContentId=9595f204-01c4-4ff7-a80b-4c4b9855fd73&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true)  
this post as spam/abuse.
