View previous topic :: View next topic
|
Author |
Message |
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Even if possible, this is a really bad idea. Forget you ever had it. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
Thanks Dick! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome
I didn't think of using this for console automation
d |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
Thanks to all your replies! Finally I ended up writing a COBOL pgm to send the messages to console. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear you have a solution - thanks for the update
We really do like to hear how things work out
d |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
kmk2mani
New User
Joined: 08 Jul 2010 Posts: 12 Location: United Kingdom
|
|
|
|
Hi Skolusu,
I have given both options but finally I was asked to go with COBOL.
Thanks,
Mani. |
|
Back to top |
|
|
|