× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: finding menu source
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Fri, 08 Dec 2000 10:00:10 -0800
  • Organization: Pacer International

Lynette,

Your question was not complete.  You are looking for the source to a
menu?  Normally, it we be in the library the menu files are in (one is
a *DSPF one is a *MSGF) and I've found them commonly in QS36SRC.  When
I do find them in there I move them to QMNUSRC.

On a side note, it is very easy to change a menu from being S36 to being
native, but there are a few things you have to be aware of.  To convert it
simply rename the menus, open the menu in SDA, close and recompile.  When
you recompile you are going to want to prompt for parameters.  Set the
Current Library (CURLIB) to *MNULIB.  This will emulate the way S36 does it
so you don't have to change your program logic.

The other problem is S36 calls menus with the MENU command.  MENU MYMENU.
Native are called with the GO command GO MYMENU.  It is not that difficult
to change these calls, since they are almost always called from other
menus.  

I would go through a library, create QMNUSRC if it didn't exist, then open
up QS36SRC and copy all the menu files (MENU and MENU##) over to my QMNUSRC
library, go into QMNUSRC and rename the first ## to QQ (so they are MENU and
MENUQQ now), do a 17 on one of them.  Edit the menu, hit F13 and start scrolling
down looking for MENU commands, and simply changing these to GO commands.  
Hit F3, Enter, enter 'Y' for prompt for parameters, change CURLIB to *MNULIB
and press enter.  Then go to the next menu.  Then I would call the menus and
make sure everything worked (99% of the time no problems).  After I was done
with all the menus I would go back into QS36SRC and delete all the S36 menus
from there.  Pretty painless and a no brainer, would do it when I had time to
spare.

Regards,

Jim Langston

Lynette Chronister wrote:
> 
> I know that there is probably a very simple way to do this, but I'm drawing a 
>blank.  Help would be appreciated.  Our main application is written in s/36.  
>I need to change a menu, but it must not be 36 because
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.