English 中文(简体)
AS400 DB2 Journals search
原标题:

I am new to DB2 administration on AS400, could you point me to the best practices/tools to search for errors in the DB2 journals?

So far I use the DSPJRN command but I am unable to make research. thanks.

最佳回答
DSPJRN JRN(<LIBRARY>/QSQJRN) FILE(<LIBRARY>/CXPBU00001) RCVRNG(<LIBRARY>/QSQJRN<JOURNAL_NUMBER)                                                                         
5=Display entire entry on a record
F6 Display only entry
F15 Display only entry specific data
From their you can get a job description: <NUMBER>/<USER>/<SYSTEM>
wrkjob <NUMBER>/<USER>/<SYSTEM>

And from their option 4 or 10 to see job logs

问题回答

Can you describe what the "error" is that you are looking for. Journal records my themselves don t really have errors (I think).

I haven t worked on an AS400 for about 10 years, but when I did use it last century I did do some work with Journals looking for the change history of a row over time and found all of the answers I needed in the online manuals.

From memory somehow I think I wrote a export program to save the output of the DSPJRN program and uploaded it into a DB2 Table so that I could query it with SQL.

The journals can be saved in files aka tables. You can create some programs/SQL to search these tables. On the iSeries one does not have other native tools then the iSeries commands and/or some programming/quering.

I don t know if they are any non-native tools. Remember that DB2/400 is really just one of the many implementations of Universal Database/2. I won t be suprised if a Windows or Linux tools can analyze the iSeries implementation too. They same is true for MQ. A typical iSeries command/menu interface on the iSeries itself (which works fine by the way). Beautifull graphical tools on other platforms that can connect to this iSeries MQ.

On a second thought, a standard tool for the iSeries is the iSeries navigator. I will check this out on my work tomorrow





相关问题
MQ EOL Data conversion

we are sending data trough MQ from a z/OS/CICS system to an AS400. Original encoding of the message is CCSID 500 with a MQSTR Format. The client application is getting the message with the CONVERT ...

Invoking AS400 RPG From Java

I have a very limitied (0) knowledge on AS400 and RPG. But we have a urgent requirement where we need to invoke a RPG program from a java class. So I found that we can achieve it through JTOpen. But I ...

Fetching data from excel sheet in AS/400

I am using AS/400 with Reflections for IBM. Here is my question: How can the data from an excel sheet be transfered to an AS/400 session. From there I should be a ble to create macros to add the info ...

Calling AS400 SP from ASP .NET webservice

I have an external stored procedure (SP) in AS400 with IN and OUT prameters.When my SP is called from webservice with IN and OUT parameters, it shows me an error (Attempted to read or write protected ...

Web development on iSeries with ABL s Strategi

Advanced BusinessLink offers a suite of products called Strategi, which basically allows creating web applications running natively on iSeries, consuming and providing web services, and replacing ...

SQL Update from a Select

I want to update two fields of table (Store) from a select of others tables, but i don´t know how i can do it. The SQL system is in AS/400, so doesn´t have SQL Server or Oracle tricks :( Here is the ...

AS400 DB2 Journals search

I am new to DB2 administration on AS400, could you point me to the best practices/tools to search for errors in the DB2 journals? So far I use the DSPJRN command but I am unable to make research. ...

热门标签