# help with eval parse

**URL:** <https://forum.kx.com/t/help-with-eval-parse/6389>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [December 2, 2009, 1:59am UTC](https://forum.kx.com/t/help-with-eval-parse/6389 "2009-12-02T01:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramdas](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Ramdas](https://forum.kx.com/u/Ramdas)\
**Post date:** [December 2, 2009, 1:59am UTC](https://forum.kx.com/t/help-with-eval-parse/6389/1 "2009-12-02T01:59:00Z")

</div>

Hi,for some reson following does not work --myf:{ mytab:select from table; mystr:“select from mytab”; eval parsemystr }-- this shows parse treebut this worksmyf:{ mystr:“select from table”; eval parse mystr}–this shows table recordsis this a bug or am I doing something wrong?Thanks,RT

---

<div class="post-metadata">

**Author:** ![Attila](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Attila](https://forum.kx.com/u/Attila)\
**Post date:** [December 2, 2009, 8:57am UTC](https://forum.kx.com/t/help-with-eval-parse/6389/2 "2009-12-02T08:57:00Z")

</div>

mytab is local, eval works with globals Regards, AttilaOn 2 Dec 2009, at 01:59, Ramdas wrote:\> Hi,\> \> for some reson following does not work –\> \> myf:{ mytab:select from table; mystr:“select from mytab”; eval parse\> mystr }\> \> – this shows parse tree\> \> but this works\> \> myf:{ mystr:“select from table”; eval parse mystr}\> --this shows table records\> \> \> \> is this a bug or am I doing something wrong?\> \> \> Thanks,\> RT\> \> –\> \> Submitted via Google Groups

---

<div class="post-metadata">

**Author:** ![Ramdas](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Ramdas](https://forum.kx.com/u/Ramdas)\
**Post date:** [December 17, 2009, 1:50am UTC](https://forum.kx.com/t/help-with-eval-parse/6389/3 "2009-12-17T01:50:00Z")

</div>

Thx Attila,

Sorry for the late reply..

Regards,  
Ramdas
