db2-400

How to view Journal data of a Table Green screen DB2

会有一股神秘感。 提交于 2019-12-01 08:01:13
How do you view journal data from a specified table? I want to see what happended to a table in a specified time frame. I got info on the table by using the following command: DSPFD FILE(P6PRDBDB00/P6OIDPF) Got the journaled name and library but I dont know how to view it for the object P6OIDPF? I did go to library #MXJRN and whent to P6 and got the following : How can I view the object P6OIDPF data? Or a command to view it? Theres a lot of objects in P6. The command to use is DSPJRN JRN(#MXJRN/P6) FILE((P6PRDBDB00/P6OIDPF)) You can Filter on start and end date time. The EXPJRNE utility from

IBM DB2: Generate list of dates between two dates

陌路散爱 提交于 2019-11-30 21:26:25
I need a query which will output a list of dates between two given dates. For example, if my start date is 23/02/2016 and end date is 02/03/2016, I am expecting the following output: Date ---- 23/02/2016 24/02/2016 25/02/2016 26/02/2016 27/02/2016 28/02/2016 29/02/2016 01/03/2016 02/03/2016 Also, I need the above using SQL only (without the use of 'WITH' statement or tables). Please help. I am using ,ostly DB2 for iSeries, so I will give you an SQL only solution that works on it. Currently I don't have an access to the server, so the query is not tested but it should work. EDIT Query is

Specify and use multiple libraries in ODBC connection string

不羁岁月 提交于 2019-11-28 02:05:52
问题 My odbc connection string for connecting to DB2i looks like this: Driver={Client Access ODBC Driver (32-bit)};system=xx.xx.xx.xx;dbq=LIB1 LIB2 LIB3 LIB4 LIB5 LIB6 LIB7 LIB8;languageid=ENU;qrystglmt=-1;cmt=0;signon=1 The above connection string specifies multiple libraries/schemas for use. But when I try to access a file/table from a library other than the first one (like from LIB2...LIB8) I get a exception saying "FILE xx not found in LIB1" Why does not it automatically search for the file

SQL0469 IN, OUT, or INOUT not valid for parameter 2 in procedure

最后都变了- 提交于 2019-11-27 08:45:42
问题 I'm trying to run a stored procedure against an IBM iSeries running AS400 and getting the above error in my title. When I type in the following to execute the stored procedure from the System iNavigator tool, it runs fine: CALL QS36F.HH189P('1','1','') The first parameter direction is defined in the stored procedure as input, the second output, and the third as output. Problem is when I try to run the stored procedure from .Net code setting up the parameters. Can someone please help me? My