Ask the Expert

How to get the source file information of a module in an RPGLE program

Do you know a non-interactive method to get/print the source file information of a module in an RPGLE program? I know how to do it interactively with the DSPPGM command.
You can write a program to get information on the modules contained in a program using the List ILE Program Information (QBNLPGMI) API, or on a specific module using the Retrieve Module Information (QBNRMODI) API. I have the utilities that you're looking for and have provided them for you below.

LSTMODREF utility: create the objects from the source

LstModRef : List modules referenced by programs

WICLMOD: List modules referenced by programs

WIRLMOD: List modules referenced by programs

WIPLMOD: Print module information

WPGMMOD: Modules by program

This was first published in May 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: