× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a stored procedure that (probably) does what you want.

Given a program (or any of the objects that DSPPGMREF handles), the PGM_REFS stored procedure will find all the objects that the program uses, and then recursively finds all that objects that they use, and so on, to an essentially unlimited depth.

Take a look:

https://github.com/SJLennon/IBM-i-RPG-Free-CLP-Code/tree/master/PGM_REFS

Sam

On 7/12/2024 1:09 PM, gio.cot via MIDRANGE-L wrote:
Hi all

I would need to find which files are used in a program’s group; i try to
better explain :

suppose i have a initial program (pgm1) called from menù that in turn call
pgm2, pgm3 ans so on; every of this programs (pgm1-2-3 ecc) use some files.
My needs is to have list of file used in this program’s chain e better also
program that use every file …

i tried to use jada command (
https://digilander.libero.it/jadaxml/jadatools.html )

DSPPGMOBJ PGM(PGM1) PGMOBJTYPE(*FILE) LEVEL(*ALL) OUTPUT(*PRINT), but i
would need the output in a file and also the program that use the listed
file.

could some one help me ?

Thanks in advance

Gio



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.