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

How to execute DB2 command '-DISPLAY THREAD(*)' from PL/1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreelekshmisr

New User


Joined: 25 Jun 2010
Posts: 9
Location: India

PostPosted: Sat Jun 26, 2010 12:13 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 1:19 pm
Reply with quote

Why write a program if you can use the WebSphere MQ utility program CSQUTIL?
Back to top
View user's profile Send private message
sreelekshmisr

New User


Joined: 25 Jun 2010
Posts: 9
Location: India

PostPosted: Sat Jun 26, 2010 1:22 pm
Reply with quote

Requirement is to use PL/1 program
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 3:46 pm
Reply with quote

Call CSQUTIL from the PL/1 program.
Back to top
View user's profile Send private message
sreelekshmisr

New User


Joined: 25 Jun 2010
Posts: 9
Location: India

PostPosted: Sat Jun 26, 2010 3:49 pm
Reply with quote

But this requires MQ connection correct?
Cant we develop the solution using only PL/1 DB2 utitlities?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 4:09 pm
Reply with quote

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
View user's profile Send private message
sreelekshmisr

New User


Joined: 25 Jun 2010
Posts: 9
Location: India

PostPosted: Sat Jun 26, 2010 4:34 pm
Reply with quote

I need a solution purely with Pl/1 DB2 not MQ
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jun 26, 2010 7:27 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 7:45 pm
Reply with quote

Yes Robert,
that would be nice if the TS wants to execute pure DB2 commands,
MQSC commands are a different story.
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: Sat Jun 26, 2010 10:27 pm
Reply with quote

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
View user's profile Send private message
sreelekshmisr

New User


Joined: 25 Jun 2010
Posts: 9
Location: India

PostPosted: Mon Jun 28, 2010 10:01 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 28, 2010 10:07 pm
Reply with quote

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
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top