Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

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 last published in May 2005

Dig Deeper on iSeries application development tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.



  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...