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

How to show message using batch jobs


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madprasy

New User


Joined: 08 Apr 2008
Posts: 34
Location: Chennai

PostPosted: Fri Sep 09, 2016 6:55 pm
Reply with quote

I would like to display a pop up message in TSO ISPF whenever some critical steps gets completed in my job just like the way a display message pop up while submit & completion of the job.

Is there any JCL utility to display message?
In TSO/ISPF we can use SEND USER command to do it. Can this be incorporated within a job too?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Sep 09, 2016 7:11 pm
Reply with quote

Incorporate the following step in your JCL and execute it based on a return code from a previous step:
Code:
//SEND    EXEC PGM=IKJEFT01
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  *
SEND 'Test msg' USER(xxxxxx)
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Sep 09, 2016 7:16 pm
Reply with quote

IMHO, these messages, are very annoying.

Often they get missed, because if you are in the middle of typing, they flash across your screen, and a gone before you get a chance to read them.

Worse yet, you get so many, they become insignificant.

Perhaps send an email instead. While they are still annoying, at least they need to be deleted or ignored.

Just my own view.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Sep 09, 2016 7:19 pm
Reply with quote

madprasy wrote:
I would like to display a pop up message in TSO ISPF whenever some critical steps gets completed in my job just like the way a display message pop up while submit & completion of the job.

Is there any JCL utility to display message?
In TSO/ISPF we can use SEND USER command to do it. Can this be incorporated within a job too?

Something like this -
Code:
//POPUP   EXEC PGM=IKJEFT01,
// PARM='SEND ''HELLO'' USER(&SYSUID)'
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  DUMMY
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2545
Location: Silicon Valley

PostPosted: Sat Sep 10, 2016 4:33 am
Reply with quote

I agree with Dave about the messages getting annoying and that you ignore them after some time. Perhaps limit the messages to only notify for error situations.

Many years ago I worked on a 'status' capability, where the batch job updated a VSAM file at various stages and then several concerned parties had a tool that read the VSAM file and showed the current progress.

Perhaps you can get by with looking at the SDSF DA display.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sat Sep 10, 2016 5:53 pm
Reply with quote

I also would also have suggested SDSF DA. Especially if you have the possibility of having a separate session, so that you can use the auto-refresh feature in SDSF.
Back to top
View user's profile Send private message
madprasy

New User


Joined: 08 Apr 2008
Posts: 34
Location: Chennai

PostPosted: Mon Sep 12, 2016 5:01 pm
Reply with quote

Thank you Steve. It worked.

we have a long running job and we would like to monitor the completion of steps just to send a mail to team of people after validation. This helped.
Back to top
View user's profile Send private message
Kerry Ropar

New User


Joined: 14 Sep 2016
Posts: 25
Location: Australia

PostPosted: Thu Sep 15, 2016 12:25 pm
Reply with quote

Perhaps, you may want to add small bit of more logic to display/mail the step number completed as well .. makes design a little better and you know till what point your job is complete .. just my thought
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
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
No new posts How to create a list of SAR jobs with... CA Products 3
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