XREF - many objects and libraries - one sysout

Hi,

I have a list of object and library, and I would like to print in only one sysout the XREF.

I tried to used stack command inside the program, but it executes only one command or the last one. Does anyone know how to do it or if there is other way to print it in one sysout.

see below the example of xref command or what I need to do…
*
logon lib1
l x report prog-1 () by * on *
l x report prog-99 (
) by * on *
l x report prog-xx () by * on *
logon lib2
l x report prog-100 (
) by * on *
l x report prog-999 (*) by * on *
*
tks.

This works just fine for me, put the whole sequence of commands,
from “logon lib1” thru “fin” on the CMSYNIN DD (assuming this is z/OS)

Hth, best regards,
   Wolfgang

Hi Wolfgang,

tks. I think you are right when you say that it works on MF., but I didnt say it before, but I am using Natural on Windows. I tried to use NATURAL BATCHMODE CMSYNIN as you written, but it didnt work, or better, it worked only if I use stack command, and besides this, only the last stack command is printed, but it didnt work when cmsynin is used. BTW, when I use cmsynin, nothing is printed.

It doesnt matter if the solution is to be used by cmsynin or stack command or even so, other solution, I need all xref in the same sysout.

do you or anyone have any other idea?

tks.

I have Natural for Windows (6.3.9), but I do not have Natural Security, so I tested the following procedure using repetitive TECH commands.

Modify the batch NatParms:

Natural Execution Configuration
→ Device/Report Assignments
→ Devices
→ LPT1
… Method: TTY
… Close mode: User

Natural Execution Configuration
→ Report parameters
… Page eject: OFF

The Close Mode parameter allows reports to be appended. The Page Eject parameter eliminates a strange character from between the reports.

I do not have access to a mainframe to verify this next bit, but, as I recall, on that platform MAINPR has no effect on output from Predict nor system commands such as TECH. Under Windows I was able to separate the TECH output from Natural’s audit trail, so MAINPR may work for Predict, too.

I set MAINPR to 1, set device LPT1 parameters as above (Method and Close mode), and specified CMPRT01. Here’s the batch submission:

natural batchmode parm=NATBATCH CMSYNIN=batjob.inc CMOBJIN=batjob.inc CMPRINT=batjob.OUT CMPRT01=batjob.txt NATLOG=ALL BMSIM=MF