Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to show message using batch jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
madprasy

New User


Joined: 08 Apr 2008
Posts: 31
Location: Chennai

PostPosted: Fri Sep 09, 2016 6:55 pm    Post subject: How to show message using batch jobs
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: 1238
Location: Richfield, MN, USA

PostPosted: Fri Sep 09, 2016 7:11 pm    Post subject:
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: 645
Location: Pennsylvania

PostPosted: Fri Sep 09, 2016 7:16 pm    Post subject:
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 User


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

PostPosted: Fri Sep 09, 2016 7:19 pm    Post subject: Re: How to show message using batch jobs
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

Senior Member


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

PostPosted: Sat Sep 10, 2016 4:33 am    Post subject: Reply to: How to show message using batch jobs
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

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Sat Sep 10, 2016 5:53 pm    Post subject:
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: 31
Location: Chennai

PostPosted: Mon Sep 12, 2016 5:01 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Truncated error message after VERIFY ... David Sde TSO/ISPF 4 Mon Sep 05, 2016 11:26 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us