# Regarding Natural Code

**URL:** <https://techcommunity.softwareag.com/t/regarding-natural-code/100733>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-Installation-and-Setup-on-Open-Systems\
**Created:** [June 14, 2012, 10:07am UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733 "2012-06-14T10:07:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![swan](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/swan/32/296_2.png) [@swan](https://techcommunity.softwareag.com/u/swan)\
**Post date:** [June 14, 2012, 10:07am UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/1 "2012-06-14T10:07:27Z")

</div>

Hello All,

Can you plz suggest me the Natural code of getting unused variable in any object.  
Is there any userexit from where i can take help?  
If you have any idea about code please suggest me or post the exact code sample.

---

<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:** [June 14, 2012, 12:02pm UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/2 "2012-06-14T12:02:19Z")

</div>

Functions like this are available as part of&nbsp;&nbsp;&nbsp;[Natural Engineer’s code analysis capabilities](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nee822/pdf/mfr/Natural_Engineer_Application_Analysis_and_Modification.pdf)

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [June 15, 2012, 9:58am UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/3 "2012-06-15T09:58:52Z")

</div>

Hello swan,

with the Predict-addon you can do something similar. See “Variables in data area not referenced”…

```auto
 09:59:11 *****P R E D I C T 4.6.1***** 2012-06-15
 Library: SYSTEM - Verify References - DBnr: 22 Fnr: 20

                    Code Function

                      D Data areas not referenced
                      V Variables in data area not referenced
                      U Programs with unused data areas
                      C Copycodes not referenced
                      N Error numbers not referenced
                      P Programs not referenced
                      I Programs not impl./ref. starting from one

                Code: V Save set: N (Y,N)
           Data area: Data area type : (?)
        Program type: (?)
             Program:

Command ==>
Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
      Invp GDAV Quit Sets Rule Copy Xref View OSet SPfk Main Exit
```

Matthias

---

<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:** [June 15, 2012, 11:56am UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/4 "2012-06-15T11:56:36Z")

</div>

Similar, but it doesn’t identify variables defined inline rather than in data areas.

---

<div class="post-metadata">

**Author:** ![Eric\_Schindler](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric\_Schindler](https://techcommunity.softwareag.com/u/Eric_Schindler)\
**Post date:** [July 2, 2012, 9:31am UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/5 "2012-07-02T09:31:27Z")

</div>

May try NatStyle delivered with NaturalOne.

---

<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:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/regarding-natural-code/100733/6 "2021-04-02T15:02:04Z")

</div>


