LIST XREF

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

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

I presume you have a STOP after the STACK statements.

Have you tried

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