# Solved: List Xref and Steplibs

**URL:** <https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics\
**Created:** [June 27, 2006, 2:06pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170 "2006-06-27T14:06:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 27, 2006, 2:06pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/1 "2006-06-27T14:06:34Z")

</div>

Hi,

I want to create a report “PROG myprogram (_) USING PROG \* (_) WITH \* VIA \*” to get a tree of called programs from myprogram. The recursion depths was set to 7 and runtime structure activated (menu path: Invoked programs-\>Program using programs)

I would expect that natural searches the steplibs to build up the tree. But indeed it fails, if a program does not exist in the current library (“\<\<- nfnd”).

How can I create the expected report. It would also be nice to see from which library in the steplibs a program is called.

Is there a tool to achieve this?

---

<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 27, 2006, 2:41pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/2 "2006-06-27T14:41:07Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 27, 2006, 4:20pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/3 "2006-06-27T16:20:21Z")

</div>

Sorry, SPoD ist not available

---

<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:** [June 28, 2006, 12:04am UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/4 "2006-06-28T00:04:52Z")

</div>

Prior to

```auto
L X PROG ...
```

enter the command

```auto
L X STRUCTURE *R
```

to apply the Steplib chain.

---

<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:** [June 28, 2006, 12:12am UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/5 "2006-06-28T00:12:36Z")

</div>

Sorry, Wilfried. I didn’t read carefully. Upon re-reading, I see that you had the runtime structure activated. In that case I don’t see why Steplibs were ignored.

---

<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 28, 2006, 12:54pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/6 "2006-06-28T12:54:11Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Helmut\_Spichtinger](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@Helmut\_Spichtinger](https://techcommunity.softwareag.com/u/Helmut_Spichtinger)\
**Post date:** [June 28, 2006, 1:28pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/7 "2006-06-28T13:28:46Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 28, 2006, 3:26pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/8 "2006-06-28T15:26:08Z")

</div>

@Matthias: It looks similar to yours, but in our case, as we use Natural Security, it is taken from the current library settings.  
@Helmut: Of course there are xref not in all steplibs but only in those steplibs a program version resides in. But in the low level steplib all programs are present and the xref for those programs are available. I think, this behavior is correct, as a library can be used as steplib in different libraries.

We are on PREDICT 4.2.2. Is it a bug in this version?

---

<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 28, 2006, 5:03pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/9 "2006-06-28T17:03:58Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Helmut\_Spichtinger](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@Helmut\_Spichtinger](https://techcommunity.softwareag.com/u/Helmut_Spichtinger)\
**Post date:** [June 28, 2006, 7:04pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/10 "2006-06-28T19:04:10Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 29, 2006, 4:19pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/11 "2006-06-29T16:19:52Z")

</div>

Thanks all for their replies. We have found the reason for this behaviour: some libraries in the steplib table are connected to different FDICs, so list xref does not find the xref for the programs.

We try to synchronize the different xref daily to have them globally available.

---

<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, 2:40pm UTC](https://techcommunity.softwareag.com/t/solved-list-xref-and-steplibs/61170/12 "2021-04-02T14:40:43Z")

</div>


