473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Command to Display Curernt SQL for a Job

Hi All,

In Ops Nav, it's possible to display the current SQL being executed by
a job. However it's rather slow to find the job as it has to populate a
large list of jobs then sort them. I suspect there is a CL command that
takes a job number parameter that would be much faster.

Is there such a command or is Ops Nav somehow using an API that is not
available as a CL command?

Thanks
JohnO

Jun 22 '06 #1
2 1323
Hello.

C API name is QUSRJOBI. Header file name is qusrjobi.h.
If someone wants soruce C code for UDF like this:
**************
--- Returns a LAST EXECUTED sql command for specified job
CREATE FUNCTION DWHTEST.QRY_SQL
(
JOBNAME VARCHAR(10) ,
USERNAME VARCHAR(10) ,
JOBNUMBER VARCHAR(6)
)
RETURNS VARCHAR(32700)
LANGUAGE C
NOT DETERMINISTIC
NO SQL
CALLED ON NULL INPUT
EXTERNAL NAME 'DWHTEST/QRY_SQL(QRY_SQL)'
PARAMETER STYLE SQL ;
*****************
write at mark(dot)b(at)mail(dot)ru

Sincerely,
Mark B.
Hi All,

In Ops Nav, it's possible to display the current SQL being executed by
a job. However it's rather slow to find the job as it has to populate a
large list of jobs then sort them. I suspect there is a CL command that
takes a job number parameter that would be much faster.

Is there such a command or is Ops Nav somehow using an API that is not
available as a CL command?

Thanks
JohnO


Jun 23 '06 #2

4.****@mail.ru wrote:
Hello.

C API name is QUSRJOBI. Header file name is qusrjobi.h.
If someone wants soruce C code for UDF like this:
**************
--- Returns a LAST EXECUTED sql command for specified job
CREATE FUNCTION DWHTEST.QRY_SQL
(
JOBNAME VARCHAR(10) ,
USERNAME VARCHAR(10) ,
JOBNUMBER VARCHAR(6)
)
RETURNS VARCHAR(32700)
LANGUAGE C
NOT DETERMINISTIC
NO SQL
CALLED ON NULL INPUT
EXTERNAL NAME 'DWHTEST/QRY_SQL(QRY_SQL)'
PARAMETER STYLE SQL ;
*****************
write at mark(dot)b(at)mail(dot)ru

Sincerely,
Mark B.
Hi All,

In Ops Nav, it's possible to display the current SQL being executed by
a job. However it's rather slow to find the job as it has to populate a
large list of jobs then sort them. I suspect there is a CL command that
takes a job number parameter that would be much faster.

Is there such a command or is Ops Nav somehow using an API that is not
available as a CL command?

Thanks
JohnO


Thanks Mark, you are a mine of information!

Jun 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Yann.K | last post by:
Hello. Using Tkinter, i would create a widget which display a shell command return. This return is long, and i would display a real time display (like with the tail -f commande on Linux) I...
2
by: Mike Nau | last post by:
I'm using command center to view my data. When I enter a query on the interactive tab, once executed it takes me to the results tab but doesn't display anything. If I enter the same query in the...
4
by: no_spam_for_gman | last post by:
Hi, I can turn off autocommit within the command window but I cannot figure out how to turn it off when you are in the IBM DB2 Command Line Processor. Does anybody knows how? By the way I mean...
10
by: jimmy | last post by:
Hi again, sorry for posting two questions so close together but im working on a school project which is due in soon and running into some difficulties implementing the database parts. I have the...
8
by: 4.spam | last post by:
Hello. WinXP, db2 v8.2.7 When I use UPDATE COMMAND OPTION USING <any_switchON(or OFF) it seems that this command has absolutely no effect on these switches since command LIST COMMAND...
10
by: mscurto | last post by:
What is the syntax for an sql command to get the following. I want to pull in a handful of fields from a table but one of the fields needs to be unique. For example, if I have a customer table...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.