# LIST XREF

**URL:** <https://techcommunity.softwareag.com/t/list-xref/194522>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [May 9, 2017, 2:33pm UTC](https://techcommunity.softwareag.com/t/list-xref/194522 "2017-05-09T14:33:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holly\_Kuzlo](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@Holly\_Kuzlo](https://techcommunity.softwareag.com/u/Holly_Kuzlo)\
**Post date:** [May 9, 2017, 2:33pm UTC](https://techcommunity.softwareag.com/t/list-xref/194522/1 "2017-05-09T14:33:25Z")

</div>

Hello,

We are trying to simulate LIST XREF from an online program. We get either a Nat1106 or a NAT2414 depending on the value of the data we pass via a stack. Here is the syntax we are using:  
STACK TOP DATA FORMATTED ‘V’  
STACK TOP DATA #CMD-LINE2  
STACK TOP DATA #CMD-LINE3  
STACK TOP COMMAND ‘LIST XREF’

#CMD-LINE2 contains:  
FIELD STIN-PRSN-ID (INC-STIN)

#CMD-LINE3 contains:  
REF PROG \* (\*) USAGE \* SAVE Y

What is the correct syntax.

Many thanks,

Holly

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [May 10, 2017, 1:34am UTC](https://techcommunity.softwareag.com/t/list-xref/194522/2 "2017-05-10T01:34:10Z")

</div>

Please post to an appropriate forum, such as “Natural for Mainframes” or “Natural for Unix”

---

<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 10, 2017, 4:04pm UTC](https://techcommunity.softwareag.com/t/list-xref/194522/3 "2017-05-10T16:04:43Z")

</div>

I presume you have a STOP after the STACK statements.

Have you tried

STACK TOP COMMAND ‘LIST XREF’ #CMD-LINE3#CMD-LINE2 ‘V’

---

<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:38pm UTC](https://techcommunity.softwareag.com/t/list-xref/194522/4 "2021-04-02T15:38:25Z")

</div>


