1 WWW.IDUGDB2-L.ORG /home/listserv/home/db2-l September 2009, week 1 2 46 51_Re: uuaaa: [DB2-L] Loading Literals with IBM Load ?14_Alexander John28_jalexander@WOOLWORTHS.COM.AU30_Tue, 1 Sep 2009 06:21:49 +0000604_utf-8 Many thanks for all your replies, I really appreciate it..

We had to stick with IBM Load Resume-Yes, Shrlevel Change for this exercise, and by using 'FORMAT DELIMITED', (comma is the default delimiter) which I never new about until a colleague pointed it out to me!, we were able to load the default values for missing (Char & Timestamp) columns from the input. Basically a comma is needed as a place holder for missing columns, as well as separating existing columns. Load control statement are not required as shown below. LOAD RESUME YES LOG YES SHRLEVEL CHANGE INDDN SYSREC ENFORCE [...] 49 35 54_Re: DB2 DBA & DB2 System programmer or Java programmer14_James Campbell25_jacampbell@ACSLINK.NET.AU30_Tue, 1 Sep 2009 20:04:25 +1000635_US-ASCII Might I suggest Thinking in Java - http://www.mindview.net/Books/TIJ/ - as a beginning text. Not only good, but free download. At least the 3rd edition is.

Some other free ebooks are at http://blog.taragana.com/index.php/archive/10-free-java-ebooks-for-you/

James Campbell

On 31 Aug 2009 at 16:38, Sevetson, Phil wrote:

> > Third, if you go with Java, you need to buy at least two books; one, a Java for Beginners book of some kind, and the other, the O'Reilly reference book "JAVA in a Nutshell". Then spend a lot of time working on them in your free time to come up to speed for your [...] 85 118 54_Re: DB2 DBA & DB2 System programmer or Java programmer11_Nenad Vidak21_nenad.vidak@GMAIL.COM30_Tue, 1 Sep 2009 10:34:08 +0000414_utf-8 Hello,

I spent last 6 years working as DB2 z sysprog, and now, as almost all new applications in my shop are written in java (CICS, batch, web), I started to learn java and WEB technologies (JSP, javascript ...) . That helps me to understand our applications and developers better. So don't hesitate - go for java. Your DB2 knowledge won't vanish just like that. ...and one day , who knows ... ? [...] 204 158 51_AW: [DB2-L] Identity columns uniqueness Db2 z/os v835_Walter Jani=?WINDOWS-1252?Q?=DFen?=26_Walter.Janissen@ITERGO.COM30_Tue, 1 Sep 2009 15:22:53 +0200606_iso-8859-1 Frank

Isn't there already a function, which does exactly what you want? It's the new Select from insert statement, which came with V8.

Mit freundlichen Grüßen Walter Janißen

ITERGO Informationstechnologie GmbH Anwendungsentwicklung Laufzeitarchitektur Victoriaplatz 2 40198 Düsseldorf mailto:walter.janissen@itergo.com

Vorsitzender des Aufsichtsrates: Jürgen Vetter Geschäftsführung: Dr. Bettina Anders (Vorsitzende), Ina Kirchhof, Dr. Christian Nymphius, Dr. Michael Regauer, Wolfgang Schön. Sitz: Düsseldorf, Handelsregister: Amtsgericht Düsseldorf, HRB 37996 [...] 363 35 28_HP Unload 00C90084, 00C9008532_Kimmo M=?UTF-8?Q?=C3=B6rnesten?=27_kimmo.mornesten@SWEDBANK.SE30_Tue, 1 Sep 2009 13:56:04 +0000402_utf-8 Hello,

Running an HP unload abends with reason code 00C90084 or 00C90085.

The sql is a join with two tables. No sort is performed explicitly or implicitly. The larger table of the two is scanned with sequential prefetch and the small table has index access.

The message indicates that the workfile database is full. Do you know why the workfile database has to be used? [...] 399 95 40_AW: [DB2-L] HP Unload 00C90084, 00C9008512_Peter, Georg15_G.Peter@DZBW.DE30_Tue, 1 Sep 2009 16:36:27 +0200754_iso-8859-1 Kimmo,

DB2 scans both tables in the order of the join columns.

If no efficient indexes on the join columns provide the order, DB2 might sort the outer table internally.........

HTH.

With kind regards - mit freundlichen Gruessen, G e o r g H . P e t e r ------------------------------------------------------------------- Datenzentrale Baden-Wuerttemberg Development and Product Support (E3) Krailenshaldenstrasse 44, 70469 Stuttgart, Germany, Europe e:mail G.Peter@dzbw.de Phone 0049-711-8108-271 PC-Fax 004971189696071 Internet (only in german language):http://www.dzbw.de ---------------------------------------------------------------------- THINK GREEN - DON'T PRINT THIS EMAIL UNLESS YOU REALLY NEED TO ! [...] 495 84 54_Re: [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB7_Ed Long19_rdhm99a@PRODIGY.NET30_Tue, 1 Sep 2009 08:55:51 -0700437_iso-8859-1 Hi everyone. I'm researching an interesting phenomena and would appreciate your insights.

We have the statement cache function enabled and run the EXPLAIN STMTCACHE ALL once per shift.

Once a week I run a purge, reorg job that deletes all rows greater than 30 days old.

The DSN_STATEMENT_CACHE_TABLE uses a LOB column stored in the DSN8L81X table space. This table space is setup as a 32k page size. [...] 580 73 31_parameter markers and functions11_Chris Bowen22_chris.bowen@MACRO4.COM30_Tue, 1 Sep 2009 16:09:10 +0000382_UTF-8 This is a nonsense query that, for various reasons, I'm interested in explaining dynamically:

SELECT COALESCE ( SUM ( "STRING_1_POS" + "STRING_2_POS" ) , 9999 ) , COUNT ( * ) FROM TABLE ( SELECT LOCATE ( ? , "STMT" ) , LOCATE ( ? , "STMT" ) FROM SYSIBM . SYSPACKSTMT ) AS NESTTAB ( "STRING_1_POS" , "STRING_2_POS" ) WHERE "STRING_1_POS" > 0 AND "STRING_2_POS" > 0 [...] 654 88 35_Re: parameter markers and functions9_Mike Bell21_mbell11a1@VERIZON.NET30_Tue, 1 Sep 2009 11:26:15 -0500424_US-ASCII You are correct - EXPLAIN does not work when any parameter to a function is ?. What I have done is substitute an appropriate datatype literal for the host variable reference. For explain processing it doesn't seem to require correct length or anything just the correct datatype. It does get interesting when the function is in the WHERE clause. It is legal in SQL but explain seems to have even more problems. [...] 743 27 54_Re: [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB13_Jack Campbell23_jackrcampbell@YAHOO.COM30_Tue, 1 Sep 2009 16:57:58 +0000730_utf-8 Ed,

The last I read a REORG on a LOB would not reclaim space. The 99% freespace may be due to the fact you only get 1 row per page for LOB's

Regards

Jack

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "I had my first experience with certifications (and passed)! I learned a lot about DB2 version 9 (LUW) that hopefully will enable me to convince management a timely migration will be of benefit for the business." _____________________________________________________________________ 771 41 49_Inconsistent Database after adding 2 table spaces13_Robert Knight28_bknight@REMOTEDBAEXPERTS.COM30_Tue, 1 Sep 2009 13:02:21 -0400369_us-ascii I just added 2 table spaces to an existing database in production this morning. Each day a procedure executes to check the consistencies in the database. The report came back that there are inconsistencies existing in the database. I then executed the following:

REPAIR DBD DIAGNOSE DATABASE OEDB02

The report displayed the inconsistencies. [...] 813 153 35_Re: parameter markers and functions13_Vaughan, Mike26_Vaughan.Mike@PRINCIPAL.COM30_Tue, 1 Sep 2009 12:43:14 -0500499_us-ascii It's really just a question of knowing the datatype. This usually works ok if you CAST the parameter marker to a known datatype. For example (in this case using CHAR(1))...

SELECT COALESCE ( SUM ( "STRING_1_POS" + "STRING_2_POS" ) , 9999 ) , COUNT ( * ) FROM TABLE ( SELECT LOCATE ( CAST (? AS CHAR(1)), "STMT" ) , LOCATE ( CAST (? AS CHAR(1)) , "STMT" ) FROM SYSIBM . SYSPACKSTMT ) AS NESTTAB ( "STRING_1_POS" , "STRING_2_POS" ) WHERE "STRING_1_POS" > 0 AND "STRING_2_POS" > 0 [...] 967 40 54_Re: [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB7_Ed Long19_rdhm99a@PRODIGY.NET30_Tue, 1 Sep 2009 10:52:41 -0700564_iso-8859-1 My facts seem to fit both of your observations. I'm certainly going to reduce the page size. But, that seems to be only part of the story. I don't want to have to drop this database on a regular basis. Edward Long --- On Tue, 9/1/09, Jack Campbell wrote: > From: Jack Campbell > Subject: Re: [DB2-L] [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB > To: DB2-L@WWW.IDUGDB2-L.ORG > Date: Tuesday, September 1, 2009, 12:57 PM > Ed, > > The last I read a REORG on a LOB would not reclaim space. > [...] 1008 55 53_Re: Inconsistent Database after adding 2 table spaces16_Broyles, Carol L27_Carol.L.Broyles@ACS-INC.COM30_Tue, 1 Sep 2009 12:56:12 -0500430_us-ascii It might just be the DBD in the EDMPOOL. Can you stop and restart the database to reload it?



Carol L. Broyles carol.l.broyles@acs-inc.com

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Robert Knight Sent: Tuesday, September 01, 2009 1:02 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: [DB2-L] Inconsistent Database after adding 2 table spaces [...] 1064 37 53_Re: Inconsistent Database after adding 2 table spaces11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Tue, 1 Sep 2009 18:07:58 +0000520_utf-8 Hi Bob, What are the objects involved in the inconsistency. Is it the new tablespace or some other objects which are already existing. What kind of inconsistency you are getting ? Is it level id mismatch or something else ? Can you please send the complete error message and brief about the objects involved. Does the new tables have any refrential intigrity with any other tables ? Try running check data or DSN1COPY with CHECK option. But before this i need to know the objects involved and the error code. [...] 1102 50 54_Re: [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Tue, 1 Sep 2009 18:28:55 +0000388_utf-8 Are you on DB2 virsion 8 or 9. If you are on 9 than you can reclaim the physical space with SHRLEVEL REFERENCE for the LOB tablespace.

You should calculate the pagesize base on the LOB size or average LOB size. Choosing a page size for LOBs (in the LOB table space) is a tradeoff between minimizing the number of getpages (maximizing performance) and not wasting space. [...] 1153 52 53_Re: Inconsistent Database after adding 2 table spaces10_Todd Burch17_toddburch@MAC.COM30_Tue, 1 Sep 2009 13:39:19 -0500558_US-ASCII If you report the inconsistencies (here or in a PMR), I'll tell you if they are reporting errors or real errors. We have a couple ptfs out that fix bogus reporting errors.

Todd DB2 z/OS Level 2





On Sep 1, 2009, at 12:02 PM, Robert Knight wrote:

I just added 2 table spaces to an existing database in production this morning. Each day a procedure executes to check the consistencies in the database. The report came back that there are inconsistencies existing in the database. I then executed the following: [...] 1206 181 55_Re: AW: [DB2-L] Identity columns uniqueness Db2 z/os v815_Frank Swarbrick30_frank.swarbrick@EFIRSTBANK.COM30_Tue, 1 Sep 2009 14:26:47 -0600714_utf-8 I don't believe so. You are still returning the key of the parent table back to the application before using that key in the insert(s) to the child table.

On 9/1/2009 at 7:22 AM, in message , Walter Janißen wrote: > Frank > > Isn't there already a function, which does exactly what you want? It's the > new Select from insert statement, which came with V8. > > Mit freundlichen Grüßen > Walter Janißen > > ITERGO Informationstechnologie GmbH > Anwendungsentwicklung > Laufzeitarchitektur > Victoriaplatz 2 > 40198 Düsseldorf > mailto:walter.janissen@itergo.com > > Vorsitzender des Aufsichtsrates: Jürgen Vetter [...] 1388 77 53_Re: Inconsistent Database after adding 2 table spaces13_Robert Knight28_bknight@REMOTEDBAEXPERTS.COM30_Tue, 1 Sep 2009 20:00:04 -0400426_us-ascii Thanks so far for everyone's input. I believe I have found the problem.

In searching thru the code for the table spaces I did a check on the Database and found to my surprise that the storage group defined to the DBD has been dropped. Apparently in a past conversion to change the storage group names to match the actual spindles the DBD's storage group was dropped. Unfortunately they are not using SMS. [...] 1466 220 63_AW: [DB2-L] AW: [DB2-L] Identity columns uniqueness Db2 z/os v835_Walter Jani=?WINDOWS-1252?Q?=DFen?=26_Walter.Janissen@ITERGO.COM30_Wed, 2 Sep 2009 08:58:42 +0200578_iso-8859-1 o.k. you are right, but you get the value with one call to DB2. And I think, the CPU-overhead will be negligable.

Mit freundlichen Grüßen Walter Janißen

ITERGO Informationstechnologie GmbH Anwendungsentwicklung Laufzeitarchitektur Victoriaplatz 2 40198 Düsseldorf mailto:walter.janissen@itergo.com

Vorsitzender des Aufsichtsrates: Jürgen Vetter Geschäftsführung: Dr. Bettina Anders (Vorsitzende), Ina Kirchhof, Dr. Christian Nymphius, Dr. Michael Regauer, Wolfgang Schön. Sitz: Düsseldorf, Handelsregister: Amtsgericht Düsseldorf, HRB 37996 [...] 1687 27 35_Re: parameter markers and functions11_Chris Bowen22_chris.bowen@MACRO4.COM30_Wed, 2 Sep 2009 07:54:09 +0000622_utf-8 Mike & Mike,

Interesting - thanks very much for your responses.

Should this be documented in one, or more, of the manuals?

Thanks again Chris

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "The clear and high level technical information of some of the sessions makes the conference a value for the money." _____________________________________________________________________ 1715 280 37_[Consulting Engagement] CSP and VAGen7_Kim May28_kim.may@THEFILLMOREGROUP.COM30_Wed, 2 Sep 2009 08:20:15 -0400533_us-ascii



I have a customer who needs assistance migrating CSP and VisualAge Generator applications from z/VM, DB2/VM 7.5 to EGL, DB2/VM 7.5.





The customer team has received training and is now looking for a consultant to work with them for two weeks to develop and implement a first application which will then be used as template for the rest. The customer is located outside the US - anyone interested needs to be passport-ready and prepared to work with the customer and an interpreter. [...] 1996 100 43_Re: Identity columns uniqueness Db2 z/os v811_Mike Bracey22_mike_bracey@UK.IBM.COM30_Wed, 2 Sep 2009 12:35:43 +0000634_UTF-8 Before V8 NFM, I used a stored procedure to get the equivalent function to sequences. The trick is to use SAVEPOINT and ROLLBACK to avoid the DELETE. The code looks something like this : CREATE PROCEDURE NEXTNO ( OUT NEXT_NO INTEGER , OUT SQLCPARM INTEGER ) EXTERNAL NAME 'NEXTNO' LANGUAGE SQL MODIFIES SQL DATA COLLID collid WLM ENVIRONMENT wlmenv ASUTIME NO LIMIT STAY RESIDENT YES RUN OPTIONS 'NOTEST(ALL,*,,VADTCPIP&9.20.78.60:*)' P1: BEGIN DECLARE SQLCODE INTEGER; DECLARE EXIT HANDLER FOR SQLEXCEPTION SET SQLCPARM = SQLCODE; SET SQLCPARM = 0 ; SET NEXT_NO = 0 ; SAVEPOINT SP1 ON ROLLBACK RETAIN CURSORS; INSERT INTO [...] 2097 64 26_DSNTIAD V8 and V9 Question0_22_DB2information@AOL.COM28_Wed, 2 Sep 2009 14:17:26 EDT399_US-ASCII Hello List, What manual must I review to see all options in DSNTIAD? -- does is not allowed as a comment, unless I am doing something incorrect. Is there a way to include a comment line in DSNTIAD control statements?



Ed.

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU * [...] 2162 131 30_Re: DSNTIAD V8 and V9 Question13_Willie Favero21_wfavero@ATTGLOBAL.NET30_Wed, 2 Sep 2009 14:14:30 -0500877_ISO-8859-1 Thy Appendix D in the Utility Guide.. I'm using the DB2 9 version.

You can also view the parameters on the web at for DB2 V8 - http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/rntiad.htm and DB2 9 http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/rntiad.htm

Willie

DB2information@AOL.COM wrote: > Hello List, > What manual must I review to see all options in DSNTIAD? > -- does is not allowed as a comment, unless I am doing something > incorrect. > Is there a way to include a comment line in DSNTIAD control statements? > > > Ed. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > IDUG - The Worldwide DB2 User Community! [...] 2294 61 30_Re: DSNTIAD V8 and V9 Question0_22_DB2information@AOL.COM28_Wed, 2 Sep 2009 16:00:53 EDT648_US-ASCII Willie, I can not seams to find if a comment statement is possible in DSNTIAD. A blank line is, but how about just a comment line -- in spufi. Also, can I run spufi in batch?

Ed.

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "The clear and high level technical information of some of the sessions makes the conference a value for the money." _____________________________________________________________________ 2356 41 30_Re: DSNTIAD V8 and V9 Question11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Wed, 2 Sep 2009 20:16:14 +0000539_utf-8 Ed, DSNTIAD does not accept comments embedde in SQL. DSNTIAD is written in assembler and can issue the same DB2 dynamic SQL statements as DSNTEP2, with the exception of the SELECT statement.

DSNTAID is written in Assembler language. Because DSNTIAD is a sample program, its source code could be modified to accept SELECT statements if you so desired. But my question is that why are you using DSNTIAD ? Are you using LABEL ON statement ? If you are not using LABEL ON statement you should use DSNTEP2/4(for multi fetch). [...] 2398 126 30_Re: DSNTIAD V8 and V9 Question12_Weaver, Rick19_Rick_Weaver@BMC.COM30_Wed, 2 Sep 2009 14:35:38 -0600515_us-ascii I always considered DSNTEP2 to be 'spufi in batch'. Craig seems to agree with that: http://www.sswug.org/articles/guestarticle.aspx?id=28053





Rick Weaver Product Manager DB2 z/OS Solutions BMC Software





________________________________ From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of DB2information@AOL.COM Sent: Wednesday, September 02, 2009 3:01 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: Re: [DB2-L] DSNTIAD V8 and V9 Question [...] 2525 73 30_Re: DSNTIAD V8 and V9 Question0_22_DB2information@AOL.COM28_Wed, 2 Sep 2009 16:36:26 EDT441_US-ASCII

Mukesh, I am creating db2 objects like create database and tablespaces and tables, etc. Will I be able to create objects with dsntep2 or 4? Or what utility can I use in a batch job that will allow me to have comments and blanks lines?

Ed.







_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU * [...] 2599 325 30_Re: DSNTIAD V8 and V9 Question13_David Simpson22_dsimpson@THEMISINC.COM30_Wed, 2 Sep 2009 16:43:20 -0400519_us-ascii DSNTEP2 and DSNTEP4 are also documented in Appendix D of the Utility Guide (difference is whether or not Muti Row Fetch is used). To my knowledge these can do everything that DSNTIAD can do with the additional benefit of being able to do a SELECT.







________________________________________________________________________ ______ David Simpson | Senior Technical Advisor | Themis Education 123 South Avenue E, Westfield NJ, 07090 | phone 908-233-8900 | dsimpson@themisinc.com [...] 2925 374 30_Re: DSNTIAD V8 and V9 Question13_David Simpson22_dsimpson@THEMISINC.COM30_Wed, 2 Sep 2009 16:44:34 -0400513_us-ascii Forgot to mention that DSNTEP2 / 4 can take comments with the --





From: David Simpson Sent: Wednesday, September 02, 2009 3:43 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: RE: [DB2-L] DSNTIAD V8 and V9 Question





DSNTEP2 and DSNTEP4 are also documented in Appendix D of the Utility Guide (difference is whether or not Muti Row Fetch is used). To my knowledge these can do everything that DSNTIAD can do with the additional benefit of being able to do a SELECT. [...] 3300 30 30_Re: DSNTIAD V8 and V9 Question11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Wed, 2 Sep 2009 21:09:58 +0000399_utf-8 Yes Ed, You can create the tables and do whatever DSNTIAD does except LABEL ON statement which i have not seen people using it. So you should use DSNTEP2 for this.

Thanks Mukesh Jain Senior DB2 DBA & System programmer (517) 9801064

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU * [...] 3331 50 29_Prepared Dynamic SQL matching15_Tonmoy Dasgupta28_tonmoy.dasgupta@ARKANSAS.GOV30_Wed, 2 Sep 2009 21:31:22 +0000458_utf-8 I was reading Willie Favero's excellent series on DDF threads and in particular "The next episode in our KEEPDYNAMIC dialogue continues with Part 2…" (http://it.toolbox.com/blogs/db2zos/the-next-episode-in-our- keepdynamic-dialogue-continues-with-part-2-13160) when he makes a statement...



"Make sure you are using parameter markers to maximize the chances of getting a match against a (prepared) statement in the dynamic cache." [...] 3382 84 54_Re: [ DB2 V8 and V9 z/OS ] Statement Cache and Its LOB12_Myron Miller22_myronwmiller@YAHOO.COM30_Wed, 2 Sep 2009 15:12:18 -0700331_us-ascii If you want to change the page size, you'll need to unload/load or something equivalent. What's the maximum length of a record.

And to reclaim space, reorg SHRLEVEL REFERENCE will reclaim old deleted space. But remember, it puts in free space if specified in define of tablespace just like regular reorg does. [...] 3467 74 33_Re: Prepared Dynamic SQL matching9_Mike Bell21_mbell11a1@VERIZON.NET30_Wed, 2 Sep 2009 18:47:14 -0500411_us-ascii Short answer - YES

The matching is done on a hash value of the entire text of the SQL statement. Many years ago there was an application that generated SQL with literals - after about a year of complaining, they regenerated with parameter markers. The DDF/DB2 cost of the application went down by over 90%. The reduction was so much it didn't even show up on the mamgement reports anymore. [...] 3542 235 76_IDUG North America 2010 - Call For Presentations - Deadline: September 25th!49_IDUG North American Conference Planning Committee23_vijay.sitaram@GMAIL.COM30_Thu, 3 Sep 2009 02:59:02 +0000509_utf-8 Dear List Serve Members,

The International DB2 Users Group (IDUG®) is accepting presentation abstracts for IDUG 2010 - North America, May 10-14 in Tampa, Florida. This is your opportunity to share your DB2 experience and expertise with an audience of your peers who rely on, or are considering incorporating DB2 in their shop. If your presentation abstract is selected to be delivered at the conference, you will receive one complimentary IDUG 2010 - North America conference registration. [...] 3778 24 39_I am out of office - visiting customer.17_Norbert Jenninger14_JEN@DE.IBM.COM30_Thu, 3 Sep 2009 08:12:01 +0200584_US-ASCII I will be out of the office starting 09/02/2009 and will not return until 09/04/2009.

I am out of office - travelling, I will be back in the office Friday Sept.4.

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "This was definitely the best IDUG conference I have ever attended." _____________________________________________________________________ 3803 373 33_Re: Prepared Dynamic SQL matching14_Steurs Patrick21_Patrick.Steurs@NBB.BE30_Thu, 3 Sep 2009 09:18:05 +0200847_us-ascii Hi,





I did some tests :





DB2 CPU usage (without appl CPU) in miliseconds for one sql





Db2 subsytem

Dynamic Statement-Caching is ON

DB2 CPU Without parameter Marker

With parameter Marker without CAST

With parameter Marker and CAST

D235

Y

487 ms

180 ms

- 63 %

166 ms

- 66 %

D215

Y

798 ms

262 ms

- 66 %

248 ms

- 69 %





greetings,





Patrick Steurs





-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Mike Bell Sent: donderdag 3 september 2009 1:47 To: DB2-L@WWW.IDUGDB2-L.ORG Subject: Re: [DB2-L] Prepared Dynamic SQL matching [...] 4177 40 36_What's the best way to get into LUW?11_Steven Lamb23_stevenjlamb@HOTMAIL.COM30_Thu, 3 Sep 2009 11:42:39 +0000579_UTF-8 In the past I've always worked on mainframes, starting working with DB2 in 1993. Since then I've worked as a DBA/Systems Programmer but as of April this year I'm "looking for new opportunities". Unfortunately there aren't an awful lot of mainframe DBA jobs going at the moment.

However, there do seem to be some LUW vacancies. The next problem is that I have no experience at all on this side of things, either in DB2 or the operating systems. Can anybody suggest a suitable training path to cross-train into LUW? Is it possible to obtain copies of DB2 LUW for [...] 4218 164 70_Question about Moving from DB2 V8.2 LUW to DB2 V9.5 LUW and PeopleSoft12_John Lendman27_lendman@PALMBEACH.K12.FL.US30_Thu, 3 Sep 2009 07:33:52 -0400434_us-ascii Has anyone experience an upgrade to DB2 V8.2 LUW to DB2 V9.5 with PeopleSoft?





If so I would like to talk to you if possible, to try to find out the problems if any and what to look out for.





TIA





John C. Lendman

IBM Certified Solutions Expert

IBM Certified Database Administrator

IBM Certified Specialist

Office 561-357-7523 [...] 4383 39 30_Re: DSNTIAD V8 and V9 Question14_James Campbell25_jacampbell@ACSLINK.NET.AU30_Thu, 3 Sep 2009 21:48:19 +1000500_US-ASCII One thing you can do with DSNTIAD, but shouldn't, is CREATE several VIEWs.

Have a look at the contents of SYSVIEWS.TEXT and you'll see why.

James Campbell



On 2 Sep 2009 at 21:09, Mukesh Jain wrote:

> Yes Ed, > You can create the tables and do whatever DSNTIAD does except > LABEL ON statement which i have not seen people using it. So you should > use DSNTEP2 for this. > > Thanks > Mukesh Jain > Senior DB2 DBA & System programmer > (517) 9801064 > [...] 4423 56 40_Re: What's the best way to get into LUW?18_Krawetzky, Peter J21_KrawetzkyPJ@AETNA.COM30_Thu, 3 Sep 2009 09:15:18 -0400480_US-ASCII DB2 Express edition is free and supports all of the LUW platforms. I recommend you start here and then research topics such as instance settings, database settings, etc.

Browsing through the manuals is probably not a bad start. I think you will find many similarities in the DML/DDL commands but there are some significant differences as well. z/OS and LUW are 2 completely different databases. For example, a subsystem on z/OS equates to an instance on LUW. [...] 4480 69 40_Re: What's the best way to get into LUW?11_Mike Turner19_mike.turner@GMX.COM30_Thu, 3 Sep 2009 14:19:33 +0100705_UTF-8 Hi Steve

Here is a link to DB2 Express-C, which is free: http://www-01.ibm.com/software/data/db2/express/getstarted.html

Can't answer your other questions, but I am sure others will.

Regards Mike Turner Email: mike.turner@gmx.com Tel: +44 (0)1565-873702 Web: www.michael-turner.ltd.uk Michael Turner Ltd. Registered in England & Wales No. 1433722. Registered Office: 131 King Street, Knutsford, Cheshire, WA16 6EJ. VAT No. GB 338 4159 44. ----- Original Message ----- From: "Steven Lamb" Newsgroups: bit.listserv.db2-l To: Sent: Thursday, September 03, 2009 12:42 PM Subject: [DB2-L] What's the best way to get into LUW? [...] 4550 43 40_Re: What's the best way to get into LUW?14_Steurs Patrick21_Patrick.Steurs@NBB.BE30_Thu, 3 Sep 2009 15:33:10 +0200578_UTF-8 Personnel Edition is free of charge.

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Steven Lamb Sent: donderdag 3 september 2009 13:43 To: DB2-L@WWW.IDUGDB2-L.ORG Subject: [DB2-L] What's the best way to get into LUW?

In the past I've always worked on mainframes, starting working with DB2 in 1993. Since then I've worked as a DBA/Systems Programmer but as of April this year I'm "looking for new opportunities". Unfortunately there aren't an awful lot of mainframe DBA jobs going at the moment. [...] 4594 44 33_Re: Prepared Dynamic SQL matching11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Thu, 3 Sep 2009 13:25:14 +0000556_utf-8 Yes Tonmoy, If you are not using parameter marker than evrytime if there is change in the constant value it will be treated as different SQL. You should use the parameter marker to take the advantange of the dynamic SQL cache with keepdynamic YES.

I have seen over 90% improvement for the high volume SQLs when they were changed to use parameter market and host valiables. And even some times i i consider changing the static SQLs bind also to use with REOPT (ONCE) so that at least first time it will get the new access path and get the [...] 4639 209 40_Re: What's the best way to get into LUW?15_Leon Katsnelson15_leon@CA.IBM.COM30_Thu, 3 Sep 2009 09:55:40 -0400883_US-ASCII

The best thing to do is first go grab DB2 Express-C (http://www-01.ibm.com/software/data/db2/express/download.html?S_TACT=LKFREE000&S_CMP=ECDDWW01). It is free to use any which way you like but it really is excellent for learning. I also suggest that you get the free book (http://www.ibm.com/developerworks/wikis/display/DB2/FREE+Book-+Getting +Started+with+DB2+Express-C?S_TACT=LKFREE000&S_CMP=ECDDWW01) we have to go with the free DB2. And last but not least, get plugged in to the community i.e. Subscribe to FreeDB2.com blog (I had to put a plug for it), visit DB2 Express-C forum (http://www.ibm.com/developerworks/forums/forum.jspa?forumID=805), watch videos on ChannelDB2.com. Make sure to watch video lessons by Raul Chong http://www.channeldb2.com/video/video/listForContributor?screenName=319vjwzxxiyj7. With your DB2 for z/OS experience you will be [...] 4849 943 33_Re: Prepared Dynamic SQL matching15_Tonmoy Dasgupta28_tonmoy.dasgupta@ARKANSAS.GOV30_Thu, 3 Sep 2009 09:11:23 -0500341_us-ascii Mike, Mukesh and Patrick!

Thank you all for your very valuable inputs. Question for you Patrick...

Care to explain what you mean by the "CAST" ... in the table below. I see that you have got further improvements (though small) by using the CAST. Is it to match the datatypes in the predicate for a Stage 1 query? [...] 5793 30 35_Re: parameter markers and functions15_Patrick Bossman25_patrick.bossman@GMAIL.COM30_Thu, 3 Sep 2009 14:31:55 +0000734_UTF-8 Hello, It's documented in the SQL Reference, Prepare. Scroll down until you see the section on parameter markers. Untyped and typed parameter markers are both covered here. http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.sqlref/db2z_sql_prepare.htm

Best regards, Pat Bossman

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "This was definitely the best IDUG conference I have ever attended." _____________________________________________________________________ 5824 282 40_Re: What's the best way to get into LUW?15_Leon Katsnelson15_leon@CA.IBM.COM30_Thu, 3 Sep 2009 10:48:18 -0400665_US-ASCII

Actually, it is DB2 Express-C that is free, not DB2 Express. Get it here http://www.ibm.com/db2/express/download.html?S_TACT=LKFREE000&S_CMP=ECDDWW01. And as I said before, there is a free book to go with it and a series of 17 on-line lessons at http://www.channeldb2.com/group/db2oncampus

Leon Katsnelson Program Director, IBM Data Servers



FreeDB2











From: "Krawetzky, Peter J" To: DB2-L@WWW.IDUGDB2-L.ORG Date: 09/03/2009 10:01 AM. Subject: Re: [DB2-L] What's the best way to get into LUW? Sent by: DB2 Data Base Discussion List [...] 6107 61 40_Re: What's the best way to get into LUW?2_DJ20_dj53tx-udb@YAHOO.COM30_Thu, 3 Sep 2009 10:46:42 -0400551_utf-8 On Thursday 03 September 2009 07:42:39 Steven Lamb wrote: > In the past I've always worked on mainframes, starting working with DB2 in > 1993. Since then I've worked as a DBA/Systems Programmer but as of April > this year I'm "looking for new opportunities". Unfortunately there aren't > an awful lot of mainframe DBA jobs going at the moment. > > However, there do seem to be some LUW vacancies. The next problem is that I > have no experience at all on this side of things, either in DB2 or the > operating systems. Can anybody suggest a [...] 6169 201 62_DB2 Optimization Service Center and Java Heap on Windows Vista14_Scott, Matthew18_MScott@ALFAINS.COM30_Thu, 3 Sep 2009 10:42:40 -0500555_us-ascii I am running DB2 Connect V9.5 fixpack 7 and DB2 Optimization Service Center 1.1 fixpack 6 on Windows Vista. I am connecting to DB2 V9 on z/OS. Since I changed my desktop OS to Vista, I have been randomly getting a "Failed to Fork OS Thread" error when running various tasks in DB2 OSC. I am able to open a command window and run a Java -Xmx command to instantiate an environment with enough memory/heap to avoid this error. The problem is that this command is temporary and I would like for it to be permanent. Changing the JAVA_HEAP_SZ DBM [...] 6371 41 35_Re: parameter markers and functions15_Tonmoy Dasgupta28_tonmoy.dasgupta@ARKANSAS.GOV30_Thu, 3 Sep 2009 11:11:31 -0500401_utf-8 Always something to learn! And this comes from the Application Dev Guide...

"Recommendation: Because DB2 can evaluate an SQL statement with typed parameter markers more efficiently than a statement with untyped parameter markers, use typed parameter markers whenever possible."



In the SQL Reference guide, for the function PREPARE the part under "Invocation" reads... [...] 6413 30 47_Problem with Query / Mainframe / DB2V7 vs DB2V815_Gaston, Raymond17_GastonRay@ORU.COM30_Thu, 3 Sep 2009 12:25:45 -0400420_utf-8 Dear List... Our mainframe TEST and USER subsystems are on DB2V8 NFM. However, our production is still on DB2V7. The query below works in TEST & USER but not in Production. The analyst gets the following error: "Sorry, a system error occurred. Your command may not have been executed" (then they ran to lunch before I could even ask how they were running this). Any clues? Help? Is this syntax invalid in V8? [...] 6444 67 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V814_Arnold, Mark S20_Mark.Arnold@BNSF.COM30_Thu, 3 Sep 2009 11:45:00 -0500409_us-ascii The error is clear - the last phrase should read "Let me buy you lunch first - then we can work on this at 1:10".

Good luck, Mark -----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Gaston, Raymond Sent: Thursday, September 03, 2009 11:26 AM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: [DB2-L] Problem with Query / Mainframe / DB2V7 vs DB2V8 [...] 6512 80 35_Re: parameter markers and functions11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Thu, 3 Sep 2009 17:07:31 +0000482_utf-8 Hi Tonmoy, You can use the prepare statment in JAVA but you can't use it the same way you use in COBOL or REXX. You need to use the JAVA functions to do that. con.prepareStatement("SQL string")

Below is one of the example:

The following code performs the previous steps to update the phone number to ’4657’ for the employee with employee number ’000010’. The numbers to the right of selected statements correspond to the previously-described steps. [...] 6593 48 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V813_David Simpson22_dsimpson@THEMISINC.COM30_Thu, 3 Sep 2009 13:08:03 -0400400_UTF-8 The SELECT inside the SELECT clause (called a scalar fullselect) was a new feature of DB2 Version 8. It will not be supported in V7.

You can test the query below... It should work in V7 and 8 and I believe it will return what you want. In any event, you should change the date predicate to do the math on the CURRENT DATE side. This makes it a stage 1 predicate instead of stage 2. [...] 6642 70 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V816_Lavoie, Frederic29_Frederic.Lavoie@CRA-ARC.GC.CA30_Thu, 3 Sep 2009 13:16:00 -0400420_iso-8859-1 Hello Ray,

I think Scalar-Fullselect is new in V8. Since you have V7 in production, the select statement will not work.

Frédéric Lavoie

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Gaston, Raymond Sent: September 3, 2009 12:26 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: [DB2-L] Problem with Query / Mainframe / DB2V7 vs DB2V8 [...] 6713 195 35_Re: parameter markers and functions10_Mark Stone17_mastone@GMAIL.COM30_Thu, 3 Sep 2009 10:25:56 -0700549_windows-1252 Is there an equivalent way to use this in .NET ?

On Thu, Sep 3, 2009 at 10:07 AM, Mukesh Jain wrote:

> Hi Tonmoy, > You can use the prepare statment in JAVA but you can't use > it the > same way you use in COBOL or REXX. You need to use the JAVA functions > to do that. > con.prepareStatement("SQL string") > > Below is one of the example: > > The following code performs the previous steps to update the phone number > to ’4657’ for the employee with employee number ’000010’. The numbers to [...] 6909 35 35_Re: parameter markers and functions11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Thu, 3 Sep 2009 17:43:47 +0000736_utf-8 For .NET you need to use Prepare function. For example:

conn = new DB2eConnection(connString);

conn.Open();

cmd = new DB2eCommand("UPDATE EMPLOYEE SET PHONENO=? WHERE EMPNO=?", conn);

// prepare the command cmd.Prepare();

Thanks Mukesh Jain Senior DB2 DBA & System programmer (517) 9801064

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU *

_____________________________________________________________________

IDUG Europe Attendee Testimonial- "This was definitely the best IDUG conference I have ever attended." _____________________________________________________________________ 6945 86 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V814_Sevetson, Phil22_PSevetson@FISA.NYC.GOV30_Thu, 3 Sep 2009 13:46:33 -0400454_us-ascii Jeez, is it Friday already and nobody told me? :-)

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Arnold, Mark S Sent: Thursday, September 03, 2009 12:45 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: Re: [DB2-L] Problem with Query / Mainframe / DB2V7 vs DB2V8

The error is clear - the last phrase should read "Let me buy you lunch first - then we can work on this at 1:10". [...] 7032 91 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V815_Gaston, Raymond17_GastonRay@ORU.COM30_Thu, 3 Sep 2009 14:15:01 -0400504_iso-8859-1 Great!!! Thanks Lavoie !!! Now let me go collect that free lunch :-)

- Gaston

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of Lavoie, Frederic Sent: Thursday, September 03, 2009 1:16 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: Re: [DB2-L] Problem with Query / Mainframe / DB2V7 vs DB2V8

Hello Ray,

I think Scalar-Fullselect is new in V8. Since you have V7 in production, the select statement will not work. [...] 7124 54 51_Re: Problem with Query / Mainframe / DB2V7 vs DB2V815_Gaston, Raymond17_GastonRay@ORU.COM30_Thu, 3 Sep 2009 14:26:21 -0400456_utf-8 Thanks David. I'll pass this on. / Ray

-----Original Message----- From: DB2 Data Base Discussion List [mailto:DB2-L@IDUGDB2-L.ORG] On Behalf Of David Simpson Sent: Thursday, September 03, 2009 1:08 PM To: DB2-L@WWW.IDUGDB2-L.ORG Subject: Re: [DB2-L] Problem with Query / Mainframe / DB2V7 vs DB2V8

The SELECT inside the SELECT clause (called a scalar fullselect) was a new feature of DB2 Version 8. It will not be supported in V7. [...] 7179 79 40_Call attachment facility (CAF) rationale25_jan.vanbrabant@telenet.be25_jan.vanbrabant@TELENET.BE30_Thu, 3 Sep 2009 19:43:59 +0000452_utf-8 Hi,

What's the rationale for he CAF (call attachment facility)?

SC18-9841-04 DB2 V9.1 for zOS Application Programming and SQL Guide(dsnapk14) at page 45: ''Use this facility as an alternative to the TSO attachment facility when your application needs tight control over the session environment.''

The next 25 pages dig a bit more in CAF's functionality & applicability, but WHY has it been invented? What is it's scope? [...] 7259 31 30_Re: DSNTIAD V8 and V9 Question14_James Campbell25_jacampbell@ACSLINK.NET.AU30_Thu, 3 Sep 2009 20:11:05 +0000491_utf-8 Sorry, don't know what I was thinking at the time. Of course you can use DSNTIAD to create a view. It's DSNTIAUL that has problems.

James Campbell

On Thu, 3 Sep 2009 21:48:19 +1000, James Campbell wrote:

>One thing you can do with DSNTIAD, but shouldn't, is CREATE several VIEWs. >

_____________________________________________________________________

* IDUG 09 Rome, Italy * October 5-9, 2009 * http://IDUG.ORG/EU * [...] 7291 120 44_Re: Call attachment facility (CAF) rationale11_Mukesh Jain21_jain.mukesh@AOINS.COM30_Thu, 3 Sep 2009 20:48:22 +0000980_utf-8 Content-Type: text/html

idug.org Newsletter