STRSEU a member and display a message while edit is starting.

how can I run the command STRSEU and display a message to the user when the source is displayed. the message can be displayed in the TOP command line or anywhere else on the screen. thanks !

Answer Wiki

Thanks. We'll let you know when a new response is added.

I’m afraid that you can’t do what you want to do within SEU itself.

The ideal place to send your message would be the message subfile at the bottom of the SEU display, unfortunately you can’t send a message there until SEU is in the call stack.

It may be possible, I haven’t tried, to use the QIBM_QSU_LCMD exit point for the SEU User Defined Line Commands and write a program that sends a message to the program message queue from there. Scan Google (or the archives) for references to the exit point.

When SEU is loaded there is a copyright message showing at the bottom of the display. If you can find where the message is held you could always change that to the details of your own message (although the copyright text could be generic and used by other applications).

Depending on exactly what you want to achieve by displaying a message to the user, does the message have to be on the SEU screen? If it is simply a policy type warning message along the lines of “Only authorised programmers are aloud to use SEU” then I would suggest putting the call to SEU inside your own wrapper program and using either SNDPGMMSG MSG(‘text’) TOPGMQ(*EXT) before the call to SEU or design a screen display and allow the user the chance to back out from loading SEU.

Hopefully the above ideas will give you something to think about.

Good luck


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.
  • GazSkeltz
    How about simply putting the message as comment(s) at the top of your source? Or am I missing the point? Maybe you want a changeable message, in which case the wrapper program seems to be the way to go... Gaz
    0 pointsBadges:
  • TomLiotta
    There is (apparently) no way to make this happen, nor does there seem to be any reason to think it might be possible. This is not especially different from asking how make any other program do something from the outside. It'd be easier just to write a program that did whatever SEU is expected to be doing. Tom
    125,585 pointsBadges:
  • graybeard52
    Still using SEU? Time to dump it and use a "real" editor. Like the included in WDSC v7.
    3,115 pointsBadges:

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.


Share this item with your network: