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 |
Matching Logic in Jcl not in cobol.Could any one please answer this question
We have two PS files,want to compare those files and put the duplicate records in one file. Input file 1 contains(1,2,4,9,10) Input file 2 contains (1,4,5,11,12,14,16). Help me with jcl.
What is a procedure?
A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)
State the uses of syspring, sysin, sort fields, sum fields and dummy.
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I GET THE PROGRAM FOR THIS
If job is submitted with typerun = hold then how can we submit the same job?
What dd statement is used to supply the name of a dataset?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Explain the function of the dd dcb keyword?
For what purpose steplib and joblib are used ?