# Scanning and Xref with Natural Libraries

**URL:** <https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics, Natural-on-Windows-Unix\
**Created:** [December 19, 2019, 4:15pm UTC](https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721 "2019-12-19T16:15:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Rogan](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Joseph\_Rogan](https://techcommunity.softwareag.com/u/Joseph_Rogan)\
**Post date:** [December 19, 2019, 4:15pm UTC](https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721/1 "2019-12-19T16:15:37Z")

</div>

I am looking at some very old (Nat 6) code that I wrote over 30 years ago for a DOS/VSE mainframe. It has since been ported down to Windows. Of course over 30 years it has changed. I am trying to figure out some way to map source code in the production library to DDM’s - mapping on the table level would be great, field level even better. Any suggestions about either a Windows solution (exporting to text, etc) or a natural utility that might be available - remember it is Nat 6. And it is still running. Kudos to SAG,

Thanks in advance.

---

<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:** [December 19, 2019, 4:36pm UTC](https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721/2 "2019-12-19T16:36:25Z")

</div>

The simple answer is to use the cross-reference feature of the Predict data dictionary via the List Xref command, abbreviated L X. If Predict is not installed, you’ll see a NAT4488 message. If you don’t see cross-references, you’ll need to turn on the feature (“xref on” command) and then CATALL to generate the data in the Predict repository.

Natural Engineer would do the trick, too.

---

<div class="post-metadata">

**Author:** ![Joseph\_Rogan](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Joseph\_Rogan](https://techcommunity.softwareag.com/u/Joseph_Rogan)\
**Post date:** [December 19, 2019, 5:00pm UTC](https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721/3 "2019-12-19T17:00:01Z")

</div>

Predict is not installed. The customer is not current on maintenance or upgrades - they have a stable environment running their core business. It’s unique because they truly could just keep running until something changes that cause the collapse of a product which is wholly unsupported. My job is to try to get them off the platform while preserving the functionality defined thirty years ago. ANd modified a lot of course in the subsequent time period. Without predict, I was hoping there might be a DBA utility or user function which might be able to help. I think I will have to export all the source code out to text and do my XREF outside the natural environment. Thanks for the answer though.

---

<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:44pm UTC](https://techcommunity.softwareag.com/t/scanning-and-xref-with-natural-libraries/206721/4 "2021-04-02T15:44:00Z")

</div>


