# Trying to do my own DDM query on Natural

**URL:** <https://techcommunity.softwareag.com/t/trying-to-do-my-own-ddm-query-on-natural/243878>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, NaturalONE\
**Created:** [August 26, 2021, 9:22am UTC](https://techcommunity.softwareag.com/t/trying-to-do-my-own-ddm-query-on-natural/243878 "2021-08-26T09:22:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [August 26, 2021, 5:52pm UTC](https://techcommunity.softwareag.com/t/trying-to-do-my-own-ddm-query-on-natural/243878/2 "2021-08-26T17:52:21Z")

</div>

What you are attempting can be a daunting task. Others have tried. [https://techcommunity.softwareag.com/t/dynamic-source-code-generation-seems-impossible-with-naturalone/102727](https://techcommunity.softwareag.com/t/dynamic-source-code-generation-seems-impossible-with-naturalone/102727)

It would help if you would list specific problems, rather than “it doesn’t work.”

Your code sample is based on Natural’s _Dynamic Source Text Creation/Execution_ feature. Refer to the documentation on the RUN statement. I don’t think the RUN statement works properly in ONE, so you may need to test your code in your target (native Natural) environment.

If you can get the RUN statement to work, then remember that SCC Toolkit was developed for mainframe use. If the components you need happen to use READ statements to access Adabas FUSER (source code) or FDIC (Predict DDMs) files, you will need to replace them with user exits (SYSEXT), because ONE maintains source and DDMs in the file system, not Adabas.

---

_[View the full topic](https://techcommunity.softwareag.com/t/trying-to-do-my-own-ddm-query-on-natural/243878)._
