View previous topic :: View next topic
|
Author |
Message |
sreelekshmisr
New User
Joined: 25 Jun 2010 Posts: 9 Location: India
|
|
|
|
I want to write a PL/1 program which will execute DB2 command -DISPLAY THREAD and will generate a report with the output of this command. Any idea how to do this? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Why write a program if you can use the WebSphere MQ utility program CSQUTIL? |
|
Back to top |
|
|
sreelekshmisr
New User
Joined: 25 Jun 2010 Posts: 9 Location: India
|
|
|
|
Requirement is to use PL/1 program |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Call CSQUTIL from the PL/1 program. |
|
Back to top |
|
|
sreelekshmisr
New User
Joined: 25 Jun 2010 Posts: 9 Location: India
|
|
|
|
But this requires MQ connection correct?
Cant we develop the solution using only PL/1 DB2 utitlities? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
We are talking Websphere MQ here. So all MQSC commands
need to have MQ running and for that are NOT DB2 commands.
Beside that DB2 can talk with MQ using the MQSEND command, but
that has to do with messaging, and that is not the same as giving
MQ subsystem commands. |
|
Back to top |
|
|
sreelekshmisr
New User
Joined: 25 Jun 2010 Posts: 9 Location: India
|
|
|
|
I need a solution purely with Pl/1 DB2 not MQ |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
How would this be different from any other PL/I program executing DB2 code? Get your team leader to give you an existing, working PL/I program that uses DB2 and modify it. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Yes Robert,
that would be nice if the TS wants to execute pure DB2 commands,
MQSC commands are a different story. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I need a solution purely with Pl/1 DB2 not MQ |
Let's look at this in a different way.
What if the "requirement" was to get some data from db2 directly - without using sql? The "requirement" would be changed. As yours needs to be changed.
It is time to manage the dsappointment of whoever defined this as a "requirement" and implement code to do what you really want/need. |
|
Back to top |
|
|
sreelekshmisr
New User
Joined: 25 Jun 2010 Posts: 9 Location: India
|
|
|
|
Basically I need to get the details about active threads using PL/1 program. -DISPLAY THREAD command will give the thread details..But how I can issue this command from DB2. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But how I can issue this command from DB2. |
Why do you believe this is possible?
Suggest you re-read what PeterHolland posted and talk with your MQ support. |
|
Back to top |
|
|
|