UIM menus in AS/400

620 pts.
Tags:
AS/400
AS/400 question: In UIM menu Libraray was hard coded as shown below.
:MENUI HELP='menu/option1'
OPTION=1
ACTION='CMD ?CPYDLLICD FROMMBR() FROMLIB(BCDLLD3)'
ACTION=' TOLIB(BCDLLD3)'
ACTION='MBROPT(*REPLACE)'
My question is: Without hard code the library (BCDLLD3) in UIM menu, how do I pick the library (BCDLLD3). I'm not sure Data area is helping in UIM menus. Please advise with syntax.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • philpl1jb

    I believe that if it appeared as:

    ACTION='CMD ?CPYDLLICD FROMMBR() FROMLIB()'

    ACTION=' TOLIB()'
    ACTION='MBROPT(*REPLACE)'

    it would prompt for both the Member name and the library names

    Is that what you want it to do?

    I'm not sure how a data area fits into this process.

    54,090 pointsBadges:
    report
  • philpl1jb

    If your option called a CL program instead of issuing the command

    It could access the data area get the library name into a variable.

    the cl program could issue the command with a variable for the library name.

    54,090 pointsBadges:
    report
  • TheRealRaven
    How do you want to "pick" the library? Are you intending to list libraries in your UIM panel and have the user choose from the list? Or will you write a program to list libraries and have the user choose from that list? Or will you simply prompt the CPYDLLICD command and have the user type a library name? Will you want the same thing done for both FROMLIB() and TOLIB()? Will both parameters always have the same value? What are the definitions of the two parameters, e.g., does TOLIB() have a special-value that automatically refers to FROMLIB()?
    35,920 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: