IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TSO SEND command from assembler program.


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pjb

New User


Joined: 27 Sep 2007
Posts: 6
Location: Illinois

PostPosted: Tue Feb 26, 2008 8:31 pm
Reply with quote

Some years ago a had a nifty assembler program that I would run interactively via CLIST. it would read instream data fro the screen and output TSO SEND commands to another user. I lost it and can't remeber how to output the SEND command. I formatted the data string and user id on a single line and then either did some kind of write, or called something for output. Has anybody ever done this?
Back to top
View user's profile Send private message
pjb

New User


Joined: 27 Sep 2007
Posts: 6
Location: Illinois

PostPosted: Tue Feb 26, 2008 11:20 pm
Reply with quote

Is it possible to do this with a TPUT and specify another user? I have tried with a TPUT and it will send output back to me, but if I include the USERIDL on the TPUT command, the output message is lost
Back to top
View user's profile Send private message
pjb

New User


Joined: 27 Sep 2007
Posts: 6
Location: Illinois

PostPosted: Wed Feb 27, 2008 12:44 am
Reply with quote

This is similiar to my prvious question about SEND messages. Has anyone
DOES the USERIDL parameter work on TPUT. I should be able to send a message to another user, but it will not work. The message goes nowhere. If I pull the USERIDL parm, the message goes to my terminal.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Feb 27, 2008 2:41 am
Reply with quote

How about doing it all in the CLIST? Enter repeated messages until DONE is entered. Be sure to enter only alpha numerics and no * / - +

Code:
PROC 1 USERID                             
TOP: -                                   
WRITE ENTER MESSAGE                       
READ                                     
IF &SYSDVAL = DONE THEN GOTO FINI         
SEND '&SYSDVAL',USER(&USERID)             
GOTO TOP                                 
FINI: -                                   
EXIT                                     
Back to top
View user's profile Send private message
pjb

New User


Joined: 27 Sep 2007
Posts: 6
Location: Illinois

PostPosted: Wed Feb 27, 2008 2:50 am
Reply with quote

That would work if I can find a way to enter up to ten lines of text and then being able to send all when done. I'm not much of a CLIST guy. Is there a way to table up the lines and the release when done?

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top