IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
 View Only
  • 1.  I've created a menu with the same name as an IBM command

    Posted 2 hours ago

    I am a consultant for a shop that normally runs in the 36 enviornment.  I (stupidly) created a menu called "DLTMNU" in library "XYZ". I deleted that menu and created it using a different name.  But, if I type in "DLTMNU" and press F4 while library "XYZ" is in my library list, I get the message "SYS2001 Invalid name specified for HELP procedure.".  If I remove library "XYZ" from my library list, or log in with a user profile that doesn't have SPCENV set to *S36, then typing in "DLTMNU" and pressing F4 gives the expected result... a prompt screen for deleting a menu..

    My question is... why am I getting the SYS2001 message when prompting for DLTMNU in this particular library and no where else?  I've IPL'd the system, thinking there might be some vestiges of the menu in QRPLOBJ, but no joy.



    ------------------------------
    Scott Coffey
    ------------------------------


  • 2.  RE: I've created a menu with the same name as an IBM command

    Posted 49 minutes ago

    Scott,

     

    Typical menus have three objects -- *MSGF, *FILE (display file), and *MENU.

    I'm thinking some of these objects named DLTMNU are remaining in the "XYZ" library being used when in *S36 environment.

     

    My suggestion is:

     

    Run this in the failing profile (SPCENV(*S36)):

    • WRKOBJ OBJ(XYZ/DLTMNU) OBJTYPE(*ALL)

     

    If you see any of these in XYZ:

    • DLTMNU *FILE (DSPF)
    • DLTMNU *MSGF
    • DLTMNU *MENU
    • DLTMNU *PGM (if it was a program-driven menu)

    ...delete/rename them so nothing named DLTMNU exists in XYZ.

     

    Scott A. Schollenberger