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

Sending message in batch without RACF ID.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 03, 2008 2:54 am
Reply with quote

Hi,

Using below code, I can send some message to a Maninframe user

Code:
//HLQS JOB (@),'SEND MSG',             
//          MSGCLASS=R,CLASS=0,       
//         NOTIFY=HLQ                 
//*                                   
//STEP010 EXEC PGM=IKJEFT01           
//SYSTSPRT DD SYSOUT=*                 
//SYSTSIN DD *                         
  SEND 'I AM DON..!!' USER(HLQ) LOGON 
//*                                   


But the message which 'pops-up' on the USER screen would be like
Code:
I AM DON..!! HLQ
Is there any way I can remove HLQ from this message?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 03, 2008 3:33 am
Reply with quote

I would say not,
"send" appends to the message text the "originator" of the message
could be a userid or a "CN(...)" console identifier
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Apr 13, 2008 8:05 am
Reply with quote

Hi,

So some other way around is there..?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 13, 2008 8:31 am
Reply with quote

Hello,

What business reason is there to eliminate the originator id?

You could always send an e-mail from some non-existent account (in the batch job) instead of a tso message. . . Of course the recipient's filtering might just discard the message as spam.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Apr 13, 2008 8:42 am
Reply with quote

Hi Dick,

This is for learning, no business reason behind.

Quote:
filtering might just discard the message as spam
This messages would pop-up on Mainframes screen, unless I mis-understood, do we have spam checker on mainframes as well?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 13, 2008 8:59 am
Reply with quote

Hi Anuj,

Quote:
This is for learning, no business reason behind.
I believe the learning came from Enrico.

Quote:
do we have spam checker on mainframes as well?
Mainframe e-mail systems (if anyone is still using one that talks to the outside world) could have a spam checker.

The originator id is not spam. TSO SEND is not part of the "mail" system.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Apr 13, 2008 1:33 pm
Reply with quote

Hi dick,

Well, I was thinking to play a prank with my collegue by sending him a 'pop-up' message, as if it was from system side..ummmm...seems can't do... icon_sad.gif .

I'm not trying to send 'mail' but a TSO MSG only.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Sun Apr 13, 2008 3:18 pm
Reply with quote

Anuj,

Did you try using the "TSO SEND" command?

Quote:

Well, I was thinking to play a prank with my collegue by sending him a 'pop-up' message, as if it was from system side..ummmm...seems can't do... .


You can do that. I dont remember the exact command and i guess that to be the TSO SEND command.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Apr 13, 2008 7:01 pm
Reply with quote

Anuj D. wrote:
Well, I was thinking to play a prank with my collegue by sending him a 'pop-up' message, as if it was from system side..ummmm...seems can't do... icon_sad.gif .
I'm not trying to send 'mail' but a TSO MSG only.
Funny you should mention that....
Many years ago, a friend and I (I was watching, he was doing) copied the send executable into his PDS and hard coded the sender to always show ops as the sender.....I used it one too many times and got a reprimand in my HR file.....
Dis-assembling a load mod and editing it in a PDS shouldn't be (wasn't) that hard, give it a try.......
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 13, 2008 9:49 pm
Reply with quote

Hello,

Quote:
I used it one too many times and got a reprimand in my HR file.....
Dis-assembling a load mod and editing it in a PDS shouldn't be (wasn't) that hard, give it a try.......
And make sure your resume is up to date. . . icon_wink.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 17, 2008 11:32 am
Reply with quote

Aaru,

Aaru wrote:
Did you try using the "TSO SEND" command?
JCL posted in my first post is "TSO SEND" in batch or are you referring to something different; if yes, please suggest.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 17, 2008 11:56 am
Reply with quote

Hi,

CICS Guy wrote:
... copied the send executable into his PDS and hard coded the sender to always show ops as the sender
Perhaps I didn't get the direction yet, where to get the 'executable' of JCL.. icon_confused.gif .., I think even the question of mine is not appropriate, ah..yes I didn't get the 'message' of your suggestion, please suggest once again.

Quote:
.....I used it one too many times and got a reprimand in my HR file.....
heh heh... icon_biggrin.gif



Quote:
And make sure your resume is up to date. . .
follwoing your 'order' Sir.. icon_smile.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top