Announcement

Collapse
1 of 2 < >

IBMi Brunch and Learn Series by Programmers.io

Dear IBMi Community Member,

We are delighted to announce the launch of our new educational series, the "Brunch and Learn" sessions, here at Programmers.io. We are excited to provide you with an opportunity to participate in these upcoming sessions. To accommodate a wider audience, these sessions will be conducted at 11:30 am EST/8:30 am PST, allowing for greater flexibility.

To gain more insights about the sessions and secure your spot, we invite you to visit the following link:

https://programmers.io/ibm-i-brunch-learn/

We kindly request you to share this information with your friends and colleagues who are actively working in the IBMi world. Their participation will contribute to a more enriching and collaborative learning experience.



Thank you for your support.
Programmers.io Team
2 of 2 < >

IBMi Brunch and Learn Series by Programmers.io

Dear IBMi Community Member,

We are delighted to announce the launch of our new educational series, the "Brunch and Learn" sessions, here at Programmers.io. We are excited to provide you with an opportunity to participate in these upcoming sessions. To accommodate a wider audience, these sessions will be conducted at 11:30 am EST/8:30 am PST, allowing for greater flexibility.

To gain more insights about the sessions and secure your spot, we invite you to visit the following link:

https://programmers.io/ibm-i-brunch-learn/

We kindly request you to share this information with your friends and colleagues who are actively working in the IBMi world. Their participation will contribute to a more enriching and collaborative learning experience.



Thank you for your support.
Programmers.io Team
See more
See less

Finding out what library a pgm is stored in.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Finding out what library a pgm is stored in.

    Is this possible?

    I know the pgm name from the menu command that triggers
    call pgm(pgmname)

    ​​​​​​But I don't know the library in which it's containcontained

    Any ideas?
    Thanks

  • #2
    If it is an interactive program, then, while the program is running, do a System Request 3 from your terminal emulator, and then select option 11 from the Display Job menu to look at the call stack. The library name will be to the right of your program name.

    You can also issue the following command from the os/400 command line to find all copies of the program on the box: wrkobj *all/pgmname *pgm

    Of course, this second option will not tell you which one is running if there are more than one of the object on the system.

    Walt

    Comment


    • #3
      It will be determined by the *LIBL at the time of execution. If the program only exists in a single library, then there's your answer.

      Comment


      • #4
        After you run WRKOBJ *all/MyProgram *pgm

        You can select 8 - Object Description

        (Or DSPOBJD followed by option 5)

        Then look to see when the different copies of the program were last used.

        Comment

        Working...
        X