×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




The QQ member has the actual commands to execute.  Like this 

CDMENUQQ,1          
0001 call cd01cl    
0003 call cd400cl   

I have always had a user option set up since the first one I had to
maintain.  
Prompt looks like this:
                              Create Menu (CRTMNU)                     
        
                                                                       
        
 Type choices, press Enter.                                            
        
                                                                       
        
 Menu . . . . . . . . . . . . . . > CDMENU        Name                 
        
   Library  . . . . . . . . . . . >   KCHEALTH    Name, *CURLIB        
        
 Menu type  . . . . . . . . . . . > *DSPF         *DSPF, *PGM, *UIM    
        
 Display file . . . . . . . . . .   *MENU         Name, *MENU          
        
   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB 
        
 Message file . . . . . . . . . .   *MENU         Name, *MENU          
        
   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB 
        
 Command line . . . . . . . . . .   *LONG         *LONG, *SHORT, *NONE 
        
 Display function keys  . . . . . > *YES          *NO, *YES            
        
 Current library  . . . . . . . .   *NOCHG        Name, *NOCHG,
*MNULIB...      
 Product library  . . . . . . . .   *NOCHG        Name, *NOCHG, *NONE  
        
 Replace menu . . . . . . . . . .   *YES          *YES, *NO            
        
 Text 'description' . . . . . . .   *SRCMBRTXT                         
        
                                                                       
        

hth

Dave Boettcher

 
>>> CWolcott@xxxxxxxxxxxxxxxxxxxxxx 11/24/2004 12:15:27 PM >>>
Can anyone tell me how to create a menu using the CRTMNU command?  I
can
create one using option 17 on PDM:  

STRSDA OPTION(2) SRCFILE(SRCLIB/QDDSSRC) SRCMBR(MenuNm) OBJLIB(QTEMP)
Menu MenuNm saved in SRCLIB/QDDSSRC and compiled in QTEMP.           
Member MenuNm of type MNUDDS created in source file SRCLIB/QDDSSRC.  
Member MenuNmQQ of type MNUCMD created in source file SRCLIB/QDDSSRC.

But if I type in the same thing it shows on its CRTMNU screen from a
CRTMNU command entered from the command line I get the following:

CRTMNU MENU(QTEMP/MenuNm) TYPE(*DSPF) DSPF(*LIBL/MenuNm) MSGF(MenuNm)
CMDLIN(*LONG) DSPKEY(*YES) TEXT('Some Text')

File SFTP in library *LIBL not found.

Problem exists with use of object SFTP type *DSPF in *LIBL.

Object SFTP in library *LIBL not found.

Problem exists with use of object SFTP type *MSGF in *LIBL.

AUT parameter ignored.

Replaced object SFTP type *MENU was added to QRPLOBJ.

Object SFTP type *MENU created in library QTEMP.          

If I create a *DSPF from my SRCLIB/QDDSSRC (MenuNm) and an empty *MSGF
I
get a menu, but it has no options.  What do I do with the MenuNmQQ
member?

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx 
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l 
or email: RPG400-L-request@xxxxxxxxxxxx 
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.