Is there ANY way to use MSGID in menu source?

65 pts.
Tags:
AS/400
iSeries
Menu
MSGID
My current site uses a lot of custom menus, created via SDA. At present there is no way of knowing if the user's environment is live, test, development or whatever and I'd like to use a message literal to provide a header line in the top row of all menus making the environment explicit. All I could manage today was a MSGCON which obviously pulls in the literal at compile time, meaning each environment would need its own menu. If I manually add a MSGID keyword, it gets deleted when the menu is compiled. I remember this being an issue years ago. Perhaps someone reading this has found a way around it.

Software/Hardware used:
iSeries 525
ASKED: September 26, 2012  7:04 PM
UPDATED: September 26, 2012  7:05 PM

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    If I manually add a MSGID keyword, it gets deleted when the menu is compiled.   That's right. If you compile it through the SDA menu option after making changes or simply after running through the process without changing the display image, the display source is rewritten by SDA to contain only the keywords that the option supports.   But you can edit the DDS for the display image (the MNUDDS member) and compile just that part as a simple DSPF.   You might create a 'work' member that holds just the MSGID() specification that you want. After compiling the menu, copy the 'work' member line over the top of the MSGCON() line and compile the DSPF. The menu will use that DSPF as long as its name and library are correct.   With a little thought, I suppose the customization steps could be automated.   Tom
    125,585 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following