MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TSO SEND command

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
mainfrae
Beginner


Joined: 17 Feb 2006
Posts: 17
Topics: 9

PostPosted: Wed Mar 22, 2006 11:30 am    Post subject: TSO SEND command Reply with quote

Hi
I want to send messages to particular userid(it may be around 20 or 30ids) through TSO SEND command.
I want to use this TSO SEND command in REXX.
Screen should be like this

**************************************
*this is from mainfrae *
* *
**************************************

I want to send this model screen through TSO SEND to the terminal for particular users using REXX.can any one guide me to do this

THANKS
MAINFRAE
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Mar 22, 2006 11:53 am    Post subject: Reply with quote

TSO SEND Command.
Back to top
View user's profile Send private message
mainfrae
Beginner


Joined: 17 Feb 2006
Posts: 17
Topics: 9

PostPosted: Wed Mar 22, 2006 1:13 pm    Post subject: TSO SEND COMMAND Reply with quote

Hi Superk
I am very clear that i want to use TSO SEND COMMAND only.But I want the screen to be seen like below (which includes the flower box also)

************************
* message to be displayed *
************************
using TSO SEND Command to some particular userid's using REXX
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Mar 22, 2006 1:43 pm    Post subject: Reply with quote

Use 3 separate SEND commands and see the Copies() and left() or center() functions in Rexx.

Also note that even with the flowerbox, SEND commands are very easy for users to miss because they come up unexpectedly and disappear as soon as the user presse enter. People who typeahead a lot (like me) usually miss them. Unfortunately, you can't do an unsoicited TGET to a terminal (SEND uses TPUT) so it is probably the best you can do.
Back to top
View user's profile Send private message Visit poster's website
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Wed Mar 22, 2006 3:32 pm    Post subject: Reply with quote

I've got some very old rexx code and an ispf panel that eases the use of a multi-line tso send command. You can massage it to accomodate mutiple userids as well. I didn't write it and don't remember who did to give them the credit.

[code:1:290a8930a5]
/***************************** REXX ******************************/
/* */
/***************************** REXX ******************************/
'ALLOC F(SYSOUT) DA(*)'
'ALLOC F(SYSPRINT) DA(*)'
'ALLOC F(SYSUDUMP) DA(*)'
'ALLOC F(SYSDBOUT) DA(*)'
'ISPEXEC LIBDEF ISPPLIB DATASET ID('''your.panel.library''') STACK'

INIT:

/*********************************************************************/
/* */
/*********************************************************************/
'ISPEXEC DISPLAY PANEL(SENDPNL)'
/* */
/* CHECK TO SEE IF THE USER HIT PF3 TO END THE CLIST. */
/* IF YES, GO TO END OF CLIST TO EXIT */
/* */
DO WHILE (RC
Back to top
View user's profile Send private message
mainfrae
Beginner


Joined: 17 Feb 2006
Posts: 17
Topics: 9

PostPosted: Thu Mar 23, 2006 6:07 am    Post subject: TSO SEND MESSAGE Reply with quote

Thanks taltyman
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 6:12 am    Post subject: Reply with quote

I use this simple CLIST to send messages

Code:

/*  CONTROL   MSG   LIST   CONLIST   SYMLIST   FLUSH
    CONTROL NOMSG NOLIST NOCONLIST NOSYMLIST NOFLUSH
                                                   
WRITENR USERID?                                     
READ UID                                           
CLEARSCR
SE ' ************************* ' U(&UID) LOGON NOWAIT
SE ' *  MESSAGE FLOWER BOX   * ' U(&UID) LOGON NOWAIT
SE ' ************************* ' U(&UID) LOGON NOWAIT


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Thu Mar 23, 2006 2:55 pm    Post subject: Reply with quote

Quote:

SEND commands are very easy for users to miss because they come up unexpectedly and disappear as soon as the user presse enter. People who typeahead a lot (like me) usually miss them.


This is precisely the reason why I wrote this chat program.
http://www-128.ibm.com/developerworks/eserver/articles/sriramia_tso.html

It allows you to chat (only with 1 person at a time)..however you can see the messages in regular ISPF screen, can save it if you want etc.....
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 3:00 pm    Post subject: Reply with quote

sriramla,

Here is a another version of chat by semigeezer

http://mvsforums.com/helpboards/viewtopic.php?p=956#956

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Mar 23, 2006 7:49 pm    Post subject: Reply with quote

A more robust version with a list of who is joined, multiple chats, serialization & maybe some other stuff is at www.sillysot.com/ftp if anyone is interested. I haven't looked at it in years and it should still be considered a toy. Oh and comments in the code??? Nahhh!
Back to top
View user's profile Send private message Visit poster's website
Martin
Beginner


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Wed Apr 05, 2006 3:49 pm    Post subject: Reply with quote

sriramla,

I tried running ur code..with noluck.. The control is going to save conversation.

Thanks,
Martin
Back to top
View user's profile Send private message
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Wed Apr 05, 2006 7:49 pm    Post subject: Reply with quote

Remove the line ADDRESS ISPEXEC "CONTROL ERRORS RETURN" from the code and try. You will come to know what is the error. Post it here if you cannot resolve by yourself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group