# Analysis of any programme in natural

**URL:** <https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Add-on-Products, Natural-Other-Addons\
**Created:** [May 10, 2011, 9:01pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048 "2011-05-10T21:01:57Z")\
**Posts on this page:** 5\
**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:** [May 10, 2011, 9:01pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048/1 "2011-05-10T21:01:57Z")

</div>

hi all,  
i have a problem regarding following.

i have a programme in natural but in this main programme .

1. some of the variable are not used(inside LDA or PDA) in this main programme .
2. some of the subroutine exist but not called.
3. some of the any object exist but there is no use in this main programme.

can any one tell me the exact code for finding out the given above .?

and plz tell me the link of related document .

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [May 10, 2011, 11:43pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048/2 "2011-05-10T23:43:05Z")

</div>

These sound like questions that Natural Engineer can answer. It is also possible to get some helpful information with Predict XREF to identify objects that exist but are not referenced.

I don’t think one can provide “code” to answer your questions.

---

<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:** [May 13, 2011, 3:18pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048/3 "2011-05-13T15:18:50Z")

</div>

Brian is right.

Here’s a screenshot of the regarding Predict XREF menu:

```auto
 10:32:07 *****P R E D I C T 4.6.1***** 2011-05-13
 Library: TEST - Verify Appl. Integrity - DBnr: 22 Fnr: 20

                 Code Function

                   X Consistency of application
                   I Objects not implemented but referenced
                   R Objects implemented but not referenced
                   A Verify all

             Code: ?

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
```

And the submenu “Objects implemented but not referenced” looks like that:

```auto
 10:32:40 *****P R E D I C T 4.6.1***** 2011-05-13
 Library: TEST - 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: ? 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
```

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 13, 2011, 6:40pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048/4 "2011-05-13T18:40:17Z")

</div>

My guess, and that is all it is, a guess, is that you are somewhat new to Natural. As the “newbie” you have been given the task of “cleaning up” some old code. Before you go down the wrong path, you might want to consider:

1. Variables in a data area not used in a main program.

2. Unused subroutines

3. references to objects that are not executed

As Brian indicated, the only software that really exists are add on products, whether from Software AG or other vendors. Depending on the size (number of objects, size of the objects) of the system, you may want to employ a lot of your own “elbow grease” and use SCANs to find references. This is an excellent way to learn about a system.

steve

---

<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:00pm UTC](https://techcommunity.softwareag.com/t/analysis-of-any-programme-in-natural/97048/5 "2021-04-02T15:00:13Z")

</div>


