jlogdup wrote: > Good Morning, > We do have a program that need send a Message to other Terminal . > Does jbase have any easy way to do that? > This is what we are trying to do: > .....Start Prog...... > .... > LOOP > READU BAD.REC FROM BAD.CHECKS,ID LOCKED > CRT ID:" locked by port ":SYSTEM(43):" - retrying" > SLEEP 1; CONTINUE ; > END THEN > BEGIN CASE > .... > END CASE > BREAK ;* Leave the LOOP > END ELSE > ... > BREAK > END > ... > REPEAT > > ..... > ......... END PROGRAM > > When the condition locked occurs, we want to send a Message to the > Terminal specified by SYSTEM(43) function. Actually, what you want to do is rewrite your application so that you are not holding locks for a length of time that could ever cause such a problem and especially not when you are sitting at INPUT. Lots of discussion about this in prior posts and no point repeating it all here when you can search the list.
If SYSTEM(43) works, then you must be on UNIX I think (please read the posting guidelines and provide the correct information next time*). If you are, then the command: MSG as documented here: http://www.jbase.com/knowledgebase/manuals/3.0/30manpages/man/uti2_msg.htm (Please read the posting guidelines and not the bit about searching before posting), will work fine, assuming that you are using telnet/sh terminal sessions with a properly defined terminfo record, with the TERM variable set to the correct terminal (e.g. TERM=vt220). Assuming that your terminal/terminal emulator is vaguely sensible, then sending it a message will not screw up the screen display as it will display the message on line 25 (or 24) of the screen, in the status line that is usually reserved for this purpose. However, I am not sure what your platfom is (UNIX/Windows? Server/Client different?), what version of jBASE you are using, or what kind of output device you are using; did I mention reading the posting guidelines and including all relevant information? ;-) Jim --~--~---------~--~----~------------~-------~--~----~ Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en -~----------~----~----~----~------~----~------~--~---
