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 execute DB2 command '-DISPLAY THREAD(*)' from PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to execute DB2 command '-DISPLAY THREAD(*)' from PL/1
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 1:19 pm    Post subject:
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    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 3:46 pm    Post subject:
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    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 4:09 pm    Post subject:
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    Post subject:
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: 7907
Location: Bellevue, IA

PostPosted: Sat Jun 26, 2010 7:27 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Sat Jun 26, 2010 7:45 pm    Post subject:
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

Site Director


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

PostPosted: Sat Jun 26, 2010 10:27 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Jun 28, 2010 10:07 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


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