How to send notification to multiple users through jcl???
Answers were Sorted based on User's Feedback
Answer / sangeetha
Notification could be send using the following JCL
//STEPNAME EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DDNAME=SYSIN
SEND 'MESSAGE' U(USERID) LOGON
Is This Answer Correct ? | 7 Yes | 3 No |
Answer / ram g
no sangeetha, what you're saying is just to send a mesgs
not a rc notification which we are getting after jcl
submition. for eg: you're submiting a job called jobA which
gives the rc as 0, obviously you're going to get this rc in
you mf screen by having the code notify = &sysuid or notify
= user001 here i want to notify user002, user003 etc about
the jobA rc notifcation. i hope you would have got my
question by now...
Thx..
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / chandrakant sinha
SEND FUNCTION - COMMUNICATION BETWEEN USER TERMINALS, OR
BETWEEN USER TERMINAL AND OPERATOR
CONSOLE.
SYNTAX: SEND ''TEXT'' USER('USERID LIST')
NOW/LOGON/SAVE NOWAIT/WAIT
OPERANDS –
''TEXT'' - MESSAGE TO BE SENT IN QUOTES.
USER('USERID LIST') - SPECIFIES THAT THE MESSAGE IS TO BE
SENT TO THE INDICATED USER(S)
ONLY.
NOW - SPECIFIES THAT THE MESSAGE IS TO BE SENT NOW.
TSO Command: TSO send 'this is a test message ' user
(userid1,userid2,userid3,…) now
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / jin
Just add a step to send message at end of JCL when your step
RC = 0
//STEP1 EXEC PGM=...
...
// IF STEP1.RC = 0 THEN
//STEPNAME EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DDNAME=SYSIN
SEND 'MESSAGE' U(USERID1,USERID2,USERID3) LOGON
// ENDIF
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / muttaiah
Chandrakant sinha, You are simply elaborating what
sangeetha told previously in her post. This is not the
actual thing what Ram.g(Who posted) is expecting anyhow
thanks for explaining in clear about send command.
usualy we will get a notification once the job completes
normally/abnormally. Ram wants how we can send the same
notification to multiple users.
Some jobs may be critical that it should complete
successfully. In that case, there may be some notification
sent to multiple users about the completion.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram.g
Thx for ur ans..but that's not the one i'm looking for..for
eg: thru notify we can send notification to one user..and
its restricted in jcl that we can't use more than one
time..but there are some way we could send notification to
more than one user..other than the concept of email...but i
couldn't figure it out that command...
Is This Answer Correct ? | 1 Yes | 2 No |
how can i use the parameters decalred in main pgm in sub pgm
How to overide the symbol parameter in the jcl ?
Explain about SYSVAR
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???
which utility is used to sort a file in jcl?
What is the function of job statement in jcl?
In JCl which of this activities get executed if act002 abnormally terminates //job001 job ......... //act001 exec pgm=cobo01 //act002 exec pgm=cob02, cond=(01,le) //actoo3 exec pgm=cob03, cond=only //actoo4 exec pgm=con04
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Explain about LMCOPY -
I have 15 flat files. each record in the files have the monthly salary for 12 months with the employee number. Now I want to concatenate the 15 files such that for the employee numbers that are common the o/p file should have only one record and the salaries should be concatenated to that record. How can we do it with JCL?