ibm-midrange

How to view Journal data of a Table Green screen DB2

风流意气都作罢 提交于 2019-12-04 01:42:18
问题 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. 回答1: The command to use is DSPJRN JRN

Why aren't connections being reused in my iSeries/ASP.NET MVC 4 app?

对着背影说爱祢 提交于 2019-12-03 23:45:56
We are running an MVC 4 web application on a Windows 2008 server farm. We have been trying to upgrade our server farm to Windows 2008 R2 64-bit servers but have run into an issue with connection pooling on an iSeries (running V7R1). We frequently call DB2 java stored procedures and have enabled connection pooling to reduce the time it takes to establish connections. Below is an example of the connection string we’re using. <add name="DB2" connectionString="ConnectionTimeout=45;Pooling=true;MinimumPoolSize=1;MaximumPoolSize=-1;MaximumUseCount=100;CheckConnectionOnOpen=true;DataSource=XXX;Naming

Non-busy blocking Queue Implementation in C

こ雲淡風輕ζ 提交于 2019-12-03 20:51:45
I am trying to implement a queue in C that causes a process to non-busy wait until there is an element in the queue to consume. I have tried two different things to try to achieve this. The first problem I have is if the enqueue/dequeue operations have if conditionals to check the bounds( if (q->count == QUEUESIZE) ), the call to sem_wait will return immediately because no other process has obtained a lock. If I change the conditional to while (q->count == QUEUESIZE), I believe the consumer process will 'busy wait' until the semaphore is posted by the producer process, which is not my goal of

how to learn RPG/400

99封情书 提交于 2019-12-03 16:28:29
I heard about RPG programming from my lecturer. I would like to give it a try. The problem with it is that, how I do the programming? I don't know the OS and the IDE to suit the needs. Any help? Thank you for your interest in RPG. RPG runs on an IBM i (aka AS/400, iSeries, Systemi) system. This is not a server you can easily buy on your own. The starting price is around $15,000 on up to millions. However, you can pay for access to a system or can try out the system using a free host. Check out http://www.holgerscherer.de/ for a free account. (Thanks @kratenko) Take a look at midrange.com which

Memory leaking without objects growing in number or size

拜拜、爱过 提交于 2019-12-03 09:38:31
On an IBM iSeries system, I have a Java program running - an application server with a web server component, all in-house developed. When running on the 32 bit or 64 bit J9 JVM (IBM Technology for Java) I have symptoms of a memory leak. Note that no problems are seen running this software on the iSeries classic JVM, on multiple Sun/Oracle JVMs and on Linux JVMs. Heck, I routinely leave the identical software running for weeks at a time on my wife's entry-level laptop while I am working on my website - I can assure you if it was leaking memory it would be noticed on that thing. If I just leave

DB2 400 drop column

半城伤御伤魂 提交于 2019-12-03 05:32:37
I want to drop a column called id which is an auto incrementing PK. The SQL: alter table "CO88GT"."XGLCTL" drop column id cascade; And I get: Error: [SQL0952] Processing of the SQL statement ended. Reason code 10. SQLState: 57014 ErrorCode: -952 I could be wrong but I think it has something to do with preventing the table from losing data. To get around this issue I need to create a new table without the column and copy the data from the old table into the new table and then replace the old table with the new table. davorp Info AS400 is giving you a warning (inquiry message) because of

Using Delphi data-aware components - pros and cons [closed]

不羁岁月 提交于 2019-12-03 05:13:42
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I want to know your opinion about using data-aware components in projects. Which are the 'strength' and 'weak' points of developing applications(win32 and web), by using Delphi and data-aware components(from Delphi's standard suite or third-party)? Using FireBird I've worked

How to do SQL select top N … in AS400

人盡茶涼 提交于 2019-12-02 20:19:22
How do you perform a Select top N * from as400table type query against an as400/db2 database James Moore Select col1,col2 from as400table where col1='filter' order by col1 fetch first N row only Remember to set an ORDER BY clause, because DB2 does not guarantee that the rows returned by FETCH FIRST N ROW ONLY are always the same N. Strictly, there is no equivalent of TOP N in DB2. SELECT 1 FROM sysibm.sysdummy1 WHERE EXISTS (SELECT 2 FROM sysibm.sysdummy1) FETCH FIRST ROW ONLY compiles and runs, but SELECT 1 FROM sysibm.sysdummy1 WHERE EXISTS (SELECT 2 FROM sysibm.sysdummy1 FETCH FIRST ROW

How to send a SQL query to database in PHP without waiting for result

两盒软妹~` 提交于 2019-12-02 19:13:22
问题 Working with DB2 and PHP, my ADDs and DROPs take a long time to finish (30 seconds per ADD and DROP). I am curious if there is a way to send my ADDs and DROPs to the database without having PHP wait for a response? 回答1: I'm fairly certain that most php db controls don't have async methods (too bad). Presuming that you just need to do DB statements that don't interact with the end user you could use pcntl_fork. If you need something else, a solution like this may be more useful. 回答2: A simple

Using Delphi data-aware components - pros and cons [closed]

南笙酒味 提交于 2019-12-02 17:38:46
I want to know your opinion about using data-aware components in projects. Which are the 'strength' and 'weak' points of developing applications(win32 and web), by using Delphi and data-aware components(from Delphi's standard suite or third-party)? Using FireBird I've worked a lot with IBObjects, which are a mature suite of components and worked very well. But there are also a lot of other RDBMS (MySQL, MSSQL, DB2, Oracle, SQLite, Nexus, Paradox, Interbase, FireBird etc). If you have developed big projects, on which you've used a lot data-aware components please answer with the database type