ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to Retrieve the program names running from Menu and display them back to users

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

  • How to Retrieve the program names running from Menu and display them back to users

    Hi Experts,

    Is there any technique to retrieve the Program names and displaying the same on other screen if requested by user.

  • #2
    Re: How to Retrieve the program names running from Menu and display them back to user

    First, there should be no need for users to know program names. There shouldn't be anything they can do with the names. But if you want to know, you should look at the menu source code. Determining the source that shows any names can depend on what type of menu it is.

    What is the menu type? (UIM? Program? Display file?)

    Tom
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment


    • #3
      Re: How to Retrieve the program names running from Menu and display them back to user

      We display the Pgm name and display format on every screen to help users and developers identify screens.

      Use the Program Status Data Structure (posn 1-10)


      Neil.
      Bloke

      Comment


      • #4
        Re: How to Retrieve the program names running from Menu and display them back to user

        I actually like the names on the screens and menus.
        Makes it much easier to "get on the same page" when a user calls with a compliment.
        (we never have errors, but our users call daily just to say how good we are)
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: How to Retrieve the program names running from Menu and display them back to user

          Originally posted by rvd_dx
          Is there any technique to retrieve the Program names and displaying the same on other screen if requested by user.
          Yes, its possible for a program to retrieve the program name. But, not from within DDS. (You'd retrieve it in the program, not the DDS.) And how you do it in the program will depend on which programming language you're coding in.

          Surely, once you have the program name in your program, you know how to print it on the screen? It's not any different from printing anything else on the screen...

          Comment


          • #6
            Re: How to Retrieve the program names running from Menu and display them back to user

            There's nothing wrong with identifying a screen with some displayed value, and program name can be as good as anything. It was the "if requested by user" that struck an odd note. And any number of menu options can have no DSPF for users to see an identifier, so the "program names running from Menu" was also unclear.

            Tom
            Tom

            There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

            Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

            Comment

            Working...
            X