Author |
Message |
Topic: question about "fetch 1st n rows only" |
jctgf
Replies: 11
Views: 5691
|
Forum: Database Posted: Thu Dec 16, 2010 7:06 am Subject: question about "fetch 1st n rows only" |
hi there,
i wonder if another possibility would be to use a freespace "big enough" when creating the table. it would reduce the chances of having a split of CI because of the inserts and, ... |
Topic: question about clustering |
jctgf
Replies: 1
Views: 1480
|
Forum: Database Posted: Wed Dec 15, 2010 6:11 am Subject: question about clustering |
hi,
i'd like to have a table whose lines are physically sorted in a given sequence.
this is because we need to run a select under cics and if we use an orderby clause to sort the lines online, t ... |
Topic: question about "fetch 1st n rows only" |
jctgf
Replies: 11
Views: 5691
|
Forum: Database Posted: Tue Dec 14, 2010 5:06 pm Subject: question about "fetch 1st n rows only" |
i did a test today.
i run a query that selected 42000 lines, with an orderby clause.
it took 5 seconds or so to run.
then i added a 'fetch 1st 1000 rows only" and to my surprise the time was a ... |
Topic: question about "fetch 1st n rows only" |
jctgf
Replies: 11
Views: 5691
|
Forum: Database Posted: Mon Dec 13, 2010 11:53 am Subject: question about "fetch 1st n rows only" |
hey kolusu,
thanks a lot.
i've heard that fetch 1st improves performance a lot, but i wonder why if it only affects the last stage of the select.
it will only improve the performance if i have a ve ... |
Topic: question about "fetch 1st n rows only" |
jctgf
Replies: 11
Views: 5691
|
Forum: Database Posted: Mon Dec 13, 2010 4:56 am Subject: question about "fetch 1st n rows only" |
hi,
i have a cursor that will select thousands (or millions) of lines. this is the requirement.
i thought i could limit the number of rows read with a fetch 1st (and prevent the aplication of ab ... |
Topic: formatted dump with run time option only |
jctgf
Replies: 1
Views: 1899
|
Forum: Application Programming Posted: Fri Jun 18, 2010 11:26 am Subject: formatted dump with run time option only |
hi,
I've searched the manual and tried some options with no result.
is there a way to generate a formatted dump without recompiling the program with the fdump compile option and only using a run tim ... |
Topic: Sort - Elapsed time!!! |
jctgf
Replies: 11
Views: 9269
|
Forum: Utilities Posted: Sun Feb 28, 2010 5:55 pm Subject: Sort - Elapsed time!!! |
i think the real problem is the number of bytes to be sorted.
have you tried to increase a few parameters like mincore and so on.
if the position of your sort key really counts, why don't you try re ... |
Topic: How to retrieve the number of rows in a query? |
jctgf
Replies: 5
Views: 2658
|
Forum: Database Posted: Tue Dec 29, 2009 10:11 am Subject: How to retrieve the number of rows in a query? |
I think the most resource-consuming operation is the DB2 access.
Sometimes, creating an index will increase your sql performance a lot.
Other possible solution would be to store the rows selected w ... |
Topic: execute an E35 routine along with INCLUDE |
jctgf
Replies: 4
Views: 2590
|
Forum: Utilities Posted: Mon Oct 19, 2009 5:43 pm Subject: execute an E35 routine along with INCLUDE |
Thanks a lot for the replies.
Unfortunately it won't work for me because I need to run an E35 for each outfile.
I tried but got an error message.
Thanks again. |
Topic: execute an E35 routine along with INCLUDE |
jctgf
Replies: 4
Views: 2590
|
Forum: Utilities Posted: Sat Oct 17, 2009 1:28 pm Subject: execute an E35 routine along with INCLUDE |
Hello,
I |
Topic: call statement - cost of it |
jctgf
Replies: 6
Views: 3730
|
Forum: Application Programming Posted: Thu Oct 01, 2009 10:51 am Subject: call statement - cost of it |
The advantages of dynamic calls usually outweigh the disadvantages, especially if the called program changes frequently. With CPU speeds being what they are nowadays, I wouldn't expect a lot of diffe ... |
Topic: call statement - cost of it |
jctgf
Replies: 6
Views: 3730
|
Forum: Application Programming Posted: Thu Oct 01, 2009 9:22 am Subject: call statement - cost of it |
I'm aware the dynamic call has a worse performance than the static one.
During my tests I couldn't see any difference though.
I wonder if there's a real difference and how big it is.
My batch ... |
Topic: Sections to Paragraphs |
jctgf
Replies: 3
Views: 2332
|
Forum: Application Programming Posted: Wed Sep 30, 2009 10:00 am Subject: Sections to Paragraphs |
I agree: it |
Topic: Cursor picks up the record just inserted during the fetch |
jctgf
Replies: 8
Views: 4823
|
Forum: Application Programming Posted: Mon Sep 28, 2009 9:03 am Subject: Cursor picks up the record just inserted during the fetch |
Hi,
I don't think it's a good idea to insert lines in a db2 table in batch mode with embedded Sql.
The problem is that if the program abends, you'll have your db2 table partially populated.
If you ... |
Topic: Operational Sign in Cobol |
jctgf
Replies: 1
Views: 2204
|
Forum: Application Programming Posted: Thu Sep 03, 2009 6:55 am Subject: Operational Sign in Cobol |
Hi,
Is it important to declare the operational sign in Cobol variables, if I'm dealing only with positive values?
I mean, is there a reason to use
01 fields pic S9(09) comp-3.
instead of ... |
|