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

messages to console


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Fri Jun 14, 2013 6:34 pm
Reply with quote

Hi,

Could someone please help me telling how to send messages to console using DFSORT? I know that this can be done in COBOL using "DISPLAY UPON CONSOLE"? Can the same be done using DFSORT?

Thanks in advance,
Mani.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jun 14, 2013 6:37 pm
Reply with quote

Even if possible, this is a really bad idea. Forget you ever had it.
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: Fri Jun 14, 2013 7:15 pm
Reply with quote

Hello,

Well managed systems do NOT permit application jobs to send messages to the console.

Why does someone believe this would be acceptable? Keep in mind this is NOT a pc.
Back to top
View user's profile Send private message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Fri Jun 14, 2013 7:54 pm
Reply with quote

We are basically setting up a trap to read the messages from console thru which we are planning to create auto tickets in BSM remedy.
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: Fri Jun 14, 2013 7:58 pm
Reply with quote

Hello,

I'll move your topic to the DFSORT part of the forum and Skolusu (IBM DFSORT Developer) will be able to provide specifics.
Back to top
View user's profile Send private message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Fri Jun 14, 2013 8:00 pm
Reply with quote

Thanks Dick!
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: Fri Jun 14, 2013 8:05 pm
Reply with quote

You're welcome icon_smile.gif

I didn't think of using this for console automation icon_redface.gif

d
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 14, 2013 8:19 pm
Reply with quote

Quote:
We are basically setting up a trap to read the messages from console thru which we are planning to create auto tickets in BSM remedy.


why not use Your scheduler facilities to handle abnormal JOB status/completion ???
Back to top
View user's profile Send private message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Fri Jun 14, 2013 8:29 pm
Reply with quote

Hi Enrico,

Good idea!

But we are planning to create tickets in case if we do not receive any data from the external team/s. In this case I am not going to have my job end abnormally, instead it will run empty creating a message to the console. Using this message an auto ticket will be created and assigned to the concern team. We are now done with the trapping the message from console and creating the ticket automattically. All I am looking for is, instead of using COBOL to send messages to console, is there any option available in DFSORT.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jun 14, 2013 8:52 pm
Reply with quote

You can get the ICE messages to go to the Console. But from your reference to "DISPLAY ... UPON CONSOLE" in COBOL, it seems you want to be able to write a message to the Console which you can automatically pick up and process.

What makes you think that DFSORT is an appropriate tool for that?

Perhaps to be certain, you can be explicit about what it is you want to do?
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Jun 14, 2013 9:26 pm
Reply with quote

kmk2mani,

You can determine, during installation or run-time, whether DFSORT writes messages to the message data set, to the master console, or to both. You can also direct an Extended Function Support program to write messages to the message data set. Messages written to the message data set can be either critical error messages, informational error messages, or diagnostic messages, as determined during installation or run-time. Messages written to the master console can be either critical error messages or informational error messages, as determined during installation.

You can set the Installation parameter MSGCON=ALL which specifies that all messages, except parameter-in-effect messages (ICE127I to ICE133I and ICE235I) and diagnostic messages (ICE800I to ICE999I) are written to the master console.

However I would caution you setting it up that way, because you will flooded with a ton of messages every time sort jobs are run.

You can set MSGCON=CRITICAL which specifies that only critical messages are written to the master console.

Search for MSGCON in this link and you can see ways to change it based on the time of the day (TD1 - TD4) via ICEPRMXX

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CI20/CCONTENTS
Back to top
View user's profile Send private message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Thu Jul 04, 2013 11:26 am
Reply with quote

Thanks to all your replies! Finally I ended up writing a COBOL pgm to send the messages to console.
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: Fri Jul 05, 2013 9:23 pm
Reply with quote

Good to hear you have a solution - thanks for the update icon_smile.gif

We really do like to hear how things work out icon_cool.gif

d
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jul 08, 2013 9:53 pm
Reply with quote

kmk2mani wrote:
Thanks to all your replies! Finally I ended up writing a COBOL pgm to send the messages to console.


I got to ask as to why you chose the COBOL program when all you need is just set a DFSORT parameter to send messages to the console.
Back to top
View user's profile Send private message
kmk2mani

New User


Joined: 08 Jul 2010
Posts: 12
Location: United Kingdom

PostPosted: Mon Jul 22, 2013 1:07 pm
Reply with quote

Hi Skolusu,

I have given both options but finally I was asked to go with COBOL.

Thanks,
Mani.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Console Commands All Other Mainframe Topics 4
No new posts REXX GETMSG does not return £HASP880... CLIST & REXX 2
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
No new posts Read 4MB message and split into multi... COBOL Programming 9
No new posts How to use CICS command CEBR on sdsf ... CICS 1
Search our Forums:

Back to Top