# Line numbers in NaturalOne

**URL:** <https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE\
**Created:** [December 8, 2021, 7:54am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783 "2021-12-08T07:54:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_Rudolph](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/andre_rudolph/32/16963_2.png) [@Andre\_Rudolph](https://techcommunity.softwareag.com/u/Andre_Rudolph)\
**Post date:** [December 8, 2021, 7:54am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/1 "2021-12-08T07:54:53Z")

</div>

#### What product/components do you use and which version/fix level?

Designer 10.7 with NaturalOne 9.1.3

#### Are you using a free trial or a product with a customer license?

Licensed

#### What are trying to achieve? Please describe in detail.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

---

<div class="post-metadata">

**Author:** ![Andre\_Rudolph](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/andre_rudolph/32/16963_2.png) [@Andre\_Rudolph](https://techcommunity.softwareag.com/u/Andre_Rudolph)\
**Post date:** [December 8, 2021, 7:56am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/2 "2021-12-08T07:56:40Z")

</div>

When getting an error during execution on the main frame the error line does not correspond to the source line numbers in NaturalOne.

---

<div class="post-metadata">

**Author:** ![david\_gurr](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david\_gurr](https://techcommunity.softwareag.com/u/david_gurr)\
**Post date:** [December 8, 2021, 9:14am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/3 "2021-12-08T09:14:40Z")

</div>

In ONE edit the problem program and do control-G. Enter the four-digit error line number. You’re now positioned on the source line that resulted in the error.

---

<div class="post-metadata">

**Author:** ![Andre\_Rudolph](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/andre_rudolph/32/16963_2.png) [@Andre\_Rudolph](https://techcommunity.softwareag.com/u/Andre_Rudolph)\
**Post date:** [December 8, 2021, 9:55am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/4 "2021-12-08T09:55:54Z")

</div>

Thank you. That solves it. It would have been nice if the source line numbering on the mainframe followed that of NaturalOne. I know ctrl-G jumps there however if I have a DB log with many lines to follow this becomes a pain. Anyway, thank you for this.

---

<div class="post-metadata">

**Author:** ![david\_gurr](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david\_gurr](https://techcommunity.softwareag.com/u/david_gurr)\
**Post date:** [December 8, 2021, 10:12am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/5 "2021-12-08T10:12:09Z")

</div>

You can LIST the code under NATURAL on mainframe and line numbers will match error (and presumably your DB log). But it kind-of defeats the purpose of being in the IDE … Right-click show line numbers in ONE would benefit from a right-click show NATURAL line numbers function.

---

<div class="post-metadata">

**Author:** ![Andre\_Rudolph](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/andre_rudolph/32/16963_2.png) [@Andre\_Rudolph](https://techcommunity.softwareag.com/u/Andre_Rudolph)\
**Post date:** [December 8, 2021, 11:36am UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/6 "2021-12-08T11:36:01Z")

</div>

If you use the profiler in NaturalOne the source line numbers (as on MF) shows. So the question is why not in the source editor? I’m asking on behalf of the developers that I’m trying to convert. A reason to stick with SPoD.

---

<div class="post-metadata">

**Author:** ![Lukas\_Hundemer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/lukas_hundemer/32/113_2.png) [@Lukas\_Hundemer](https://techcommunity.softwareag.com/u/Lukas_Hundemer)\
**Post date:** [December 9, 2021, 1:44pm UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/7 "2021-12-09T13:44:14Z")

</div>

There are already entries in the new Aha! system regarding line numbers, see for example [Aha! LineNbr](https://adabasnatural.ideas.aha.io/ideas/ONE-I-21). Somehow NaturalONE should offer a possibility to show the server line numbers which is currently not possible.  
Regarding the Profiler: The application runs on the server and the Profiler collects the data there. Thus the Profiler collects server line numbers. And NaturalONE shows the data collected by the Profiler. If you profile a program from NaturalONE, you can double-click on a line entry in the hot spots view, and the editor will directly position to that line. If you open a Profiler resource (usually from a batch profiling), the double-click does not work. But you can open the resource with the Profiler Rich GUI which merges the Profiler data into the source and shows the original server line numbers.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [March 9, 2022, 1:44pm UTC](https://techcommunity.softwareag.com/t/line-numbers-in-naturalone/253783/8 "2022-03-09T13:44:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
